예제 #1
0
// SetSubscribe sets the subscribe option for the socket
func (s *Sock) SetSubscribe(val string) {
	C.zsock_set_subscribe(unsafe.Pointer(s.zsockT), C.CString(val))
}
예제 #2
0
// SetSubscribe sets the subscribe option for the socket
func (s *Sock) SetSubscribe(val string) {
	cVal := C.CString(val)
	defer C.free(unsafe.Pointer(cVal))

	C.zsock_set_subscribe(unsafe.Pointer(s.zsockT), cVal)
}