示例#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)