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