コード例 #1
0
ファイル: star.go プロジェクト: kildevaeld/projects
// NewSocket allocates a new Socket using the STAR protocol.
func NewSocket() (mangos.Socket, error) {
	return mangos.MakeSocket(&star{}), nil
}
コード例 #2
0
ファイル: surveyor.go プロジェクト: kildevaeld/projects
// NewSocket allocates a new Socket using the SURVEYOR protocol.
func NewSocket() (mangos.Socket, error) {
	return mangos.MakeSocket(&surveyor{duration: defaultSurveyTime}), nil
}