示例#1
0
文件: rsocket.py 项目: juokaz/pypy
 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()
示例#2
0
 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()
示例#3
0
 def CLOSE(self):
     from rpython.rlib._rsocket_rffi import socketclose
     socketclose(self.fd)
示例#4
0
def multiprocessing_closesocket(space, handle):
    res = socketclose(handle)
    if res != 0:
        raise getWindowsError(space)
示例#5
0
文件: rsocket.py 项目: charred/pypy
 def __del__(self):
     fd = self.fd
     if fd != _c.INVALID_SOCKET:
         self.fd = _c.INVALID_SOCKET
         _c.socketclose(fd)
示例#6
0
 def close(self):
     if not self.get_closed():
         kqfd = self.kqfd
         self.kqfd = -1
         socketclose(kqfd)
示例#7
0
 def CLOSE(self):
     from rpython.rlib._rsocket_rffi import socketclose
     socketclose(self.fd)
示例#8
0
 def close(self):
     if not self.get_closed():
         socketclose(self.epfd)
         self.epfd = -1
示例#9
0
 def close(self):
     if not self.get_closed():
         socketclose(self.epfd)
         self.epfd = -1
         self.may_unregister_rpython_finalizer(self.space)
示例#10
0
def close(space, fd):
    from rpython.rlib import _rsocket_rffi as _c
    res = _c.socketclose(fd)
    if res:
        converted_error(space, rsocket.last_error())
示例#11
0
 def close(self):
     if not self.get_closed():
         socketclose(self.epfd)
         self.epfd = -1
         self.may_unregister_rpython_finalizer(self.space)
示例#12
0
 def close(self):
     if not self.get_closed():
         socketclose(self.epfd)
         self.epfd = -1