示例#1
0
文件: rsocket.py 项目: alkorzt/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):
     if not self.get_closed():
         kqfd = self.kqfd
         self.kqfd = -1
         socketclose(kqfd)
示例#4
0
 def close(self):
     if not self.get_closed():
         socketclose(self.epfd)
         self.epfd = -1
示例#5
0
 def close(self):
     if not self.get_closed():
         kqfd = self.kqfd
         self.kqfd = -1
         socketclose(kqfd)
示例#6
0
 def CLOSE(self):
     from pypy.rlib._rsocket_rffi import socketclose
     socketclose(self.fd)
示例#7
0
 def CLOSE(self):
     from pypy.rlib._rsocket_rffi import socketclose
     socketclose(self.fd)
示例#8
0
 def close(self):
     if not self.get_closed():
         socketclose(self.epfd)
         self.epfd = -1