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

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