Exemplo n.º 1
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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)