예제 #1
0
// NewSocket allocates a new Socket using the SURVEYOR protocol.
func NewSocket() (mangos.Socket, error) {
	return mangos.MakeSocket(&surveyor{duration: defaultSurveyTime}), nil
}
예제 #2
0
파일: pub.go 프로젝트: iwarsong/bearded
// NewSocket allocates a new Socket using the PUB protocol.
func NewSocket() (mangos.Socket, error) {
	return mangos.MakeSocket(&pub{}), nil
}