示例#1
0
// SetGssapiServicePrincipal sets the gssapi_service_principal option for the socket
func (s *Sock) SetGssapiServicePrincipal(val string) {
	C.zsock_set_gssapi_service_principal(unsafe.Pointer(s.zsockT), C.CString(val))
}
示例#2
0
// SetGssapiServicePrincipal sets the gssapi_service_principal option for the socket
func (s *Sock) SetGssapiServicePrincipal(val string) {
	cVal := C.CString(val)
	defer C.free(unsafe.Pointer(cVal))

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