Пример #1
0
// Destroy destroys the underlying zsockT.
func (s *Sock) Destroy() {
	C.zsock_destroy_checked(&s.zsockT, C.CString(s.file), C.size_t(s.line))
}
Пример #2
0
// Destroy destroys the underlying zsockT.
func (s *Sock) Destroy() {
	cFile := C.CString(s.file)
	defer C.free(unsafe.Pointer(cFile))

	C.zsock_destroy_checked(&s.zsockT, cFile, C.size_t(s.line))
}