예제 #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