Пример #1
0
// SetPlainUsername sets the plain_username option for the socket
func (s *Sock) SetPlainUsername(val string) {
	C.zsock_set_plain_username(unsafe.Pointer(s.zsockT), C.CString(val))
}
Пример #2
0
// SetPlainUsername sets the plain_username option for the socket
func (s *Sock) SetPlainUsername(val string) {
	cVal := C.CString(val)
	defer C.free(unsafe.Pointer(cVal))

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