Beispiel #1
0
// SetUnsubscribe sets the unsubscribe option for the socket
func (s *Sock) SetUnsubscribe(val string) {
	C.zsock_set_unsubscribe(unsafe.Pointer(s.zsockT), C.CString(val))
}
Beispiel #2
0
// SetUnsubscribe sets the unsubscribe option for the socket
func (s *Sock) SetUnsubscribe(val string) {
	cVal := C.CString(val)
	defer C.free(unsafe.Pointer(cVal))

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