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): 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): from pypy.rlib._rsocket_rffi import socketclose socketclose(self.fd)