Пример #1
0
def internal_shutdown(s, how):
    cancel_wait(s._sock.fileno())
    s._sock.shutdown(how)
Пример #2
0
 def shutdown(self, how):
     cancel_wait(self._sock.fileno())
     self._sock.shutdown(how)
Пример #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)
Пример #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)
Пример #5
0
def internal_shutdown(s, how):
    cancel_wait(s._sock.fileno())
    s._sock.shutdown(how)
Пример #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)
Пример #7
0
 def shutdown(self, how):
     cancel_wait(self._sock.fileno())
     self._sock.shutdown(how)
Пример #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)