示例#1
0
文件: sock.go 项目: roger2000/goczmq
// 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
文件: sock.go 项目: nbargnesi/goczmq
// 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))
}