Beispiel #1
0
 def __del__(self):
     fd = self.fd
     if fd != _c.INVALID_SOCKET:
         self.fd = _c.INVALID_SOCKET
         _c.socketclose_no_errno(fd)
Beispiel #2
0
 def close(self):
     if not self.get_closed():
         kqfd = self.kqfd
         self.kqfd = -1
         socketclose_no_errno(kqfd)
         self.may_unregister_rpython_finalizer(self.space)
Beispiel #3
0
 def close(self):
     if not self.get_closed():
         kqfd = self.kqfd
         self.kqfd = -1
         socketclose_no_errno(kqfd)
         self.may_unregister_rpython_finalizer(self.space)
Beispiel #4
0
 def close(self):
     if not self.get_closed():
         kqfd = self.kqfd
         self.kqfd = -1
         socketclose_no_errno(kqfd)
Beispiel #5
0
 def close(self):
     if not self.get_closed():
         kqfd = self.kqfd
         self.kqfd = -1
         socketclose_no_errno(kqfd)
Beispiel #6
0
 def __del__(self):
     fd = self.fd
     if fd != _c.INVALID_SOCKET:
         self.fd = _c.INVALID_SOCKET
         _c.socketclose_no_errno(fd)