func Close(socket *Socket) (retval int, err error) { retval = int(C.udt_close(socket.sock)) if retval < 0 { return retval, udtErrDesc("Unable to close socket") } return }
func closeSocket(sock C.UDTSOCKET) error { if C.udt_close(sock) == C.ERROR { return lastError() } return nil }