Esempio n. 1
0
def internal_shutdown(s, how):
    cancel_wait(s._sock.fileno())
    s._sock.shutdown(how)
Esempio n. 2
0
 def shutdown(self, how):
     cancel_wait(self._sock.fileno())
     self._sock.shutdown(how)
Esempio n. 3
0
def internal_close(s):
    cancel_wait(s._sock.fileno())
    s._sock = _closedsocket()
    dummy = s._sock._dummy
    for method in _delegate_methods:
        setattr(s, method, dummy)
Esempio n. 4
0
 def close(self):
     cancel_wait(self._sock.fileno())
     self._sock = _closedsocket()
     dummy = self._sock._dummy
     for method in _delegate_methods:
         setattr(self, method, dummy)
Esempio n. 5
0
def internal_shutdown(s, how):
    cancel_wait(s._sock.fileno())
    s._sock.shutdown(how)
Esempio n. 6
0
def internal_close(s):
    cancel_wait(s._sock.fileno())
    s._sock = _closedsocket()
    dummy = s._sock._dummy
    for method in _delegate_methods:
        setattr(s, method, dummy)
Esempio n. 7
0
 def shutdown(self, how):
     cancel_wait(self._sock.fileno())
     self._sock.shutdown(how)
Esempio n. 8
0
 def close(self):
     cancel_wait(self._sock.fileno())
     self._sock = _closedsocket()
     dummy = self._sock._dummy
     for method in _delegate_methods:
         setattr(self, method, dummy)