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

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