def close(self): """Close the socket. It cannot be used after this call.""" fd = self.fd if fd != _c.INVALID_SOCKET: self.fd = _c.INVALID_SOCKET res = _c.socketclose(fd) if res != 0: raise self.error_handler()
def CLOSE(self): from rpython.rlib._rsocket_rffi import socketclose socketclose(self.fd)
def multiprocessing_closesocket(space, handle): res = socketclose(handle) if res != 0: raise getWindowsError(space)
def __del__(self): fd = self.fd if fd != _c.INVALID_SOCKET: self.fd = _c.INVALID_SOCKET _c.socketclose(fd)
def close(self): if not self.get_closed(): kqfd = self.kqfd self.kqfd = -1 socketclose(kqfd)
def close(self): if not self.get_closed(): socketclose(self.epfd) self.epfd = -1
def close(self): if not self.get_closed(): socketclose(self.epfd) self.epfd = -1 self.may_unregister_rpython_finalizer(self.space)
def close(space, fd): from rpython.rlib import _rsocket_rffi as _c res = _c.socketclose(fd) if res: converted_error(space, rsocket.last_error())