예제 #1
0
파일: socks5.py 프로젝트: zry69p/TcpRoute
 def __init__(self,
              family=_socket.AF_INET,
              type=_socket.SOCK_STREAM,
              proto=0,
              _sock=None):
     if _sock is None:
         _sock = socket.upstream.socket(family=family,
                                        type=type,
                                        proto=proto)
     SocketBase.__init__(self, _sock)
예제 #2
0
 def __init__(self,
              family=_socket.AF_INET,
              type=_socket.SOCK_STREAM,
              proto=0,
              _sock=None):
     if _sock is None:
         _sock = socket.upsocket.socket(family=family,
                                        type=type,
                                        proto=proto)
         _sock.bind(self.source_address)
     SocketBase.__init__(self, _sock)
예제 #3
0
 def __init__(self, family=_socket.AF_INET, type=_socket.SOCK_STREAM, proto=0, _sock=None):
     if _sock is None:
         _sock = socket.upstream.socket(family=family, type=type, proto=proto)
     SocketBase.__init__(self, _sock)
예제 #4
0
 def __init__(self, family=_socket.AF_INET, type=_socket.SOCK_STREAM, proto=0,_sock=None):
     if _sock is None:
         _sock = socket.upsocket.socket(family=family,type=type,proto=proto)
         _sock.bind(self.source_address)
     SocketBase.__init__(self,_sock)