Exemplo n.º 1
0
 def __init__(self, factory, wrappedProtocol, connectedDeferred, host, port):
     ProtocolWrapper.__init__(self, factory, wrappedProtocol)
     self._connectedDeferred = connectedDeferred
     self._host = host
     self._port = port
     self._buf = b''
     self.state = 0
Exemplo n.º 2
0
 def __init__(self, factory, wrappedProtocol):
     ProtocolWrapper.__init__(self, factory, wrappedProtocol)
     AsyncStateMachine.__init__(self)
     self.fakeSocket = _FakeSocket(self)
     self.tlsConnection = TLSConnection(self.fakeSocket)
     self.tlsStarted = False
     self.connectionLostCalled = False
Exemplo n.º 3
0
 def __init__(self, *args, **kwargs):
     ProtocolWrapper.__init__(self, *args, **kwargs)
     self.buf = ''
     self.codec = None
     self.location = '/'
     self.host = ''
     self.origin = ''
     self.version = None
     self.state = HANDSHAKE
     self.pending_frames = []
     self.protocols = []
     self.headers = {}
Exemplo n.º 4
0
 def __init__(self,
              factory,
              wrappedProtocol,
              connectedDeferred,
              host,
              port,
              optimistic=False):
     ProtocolWrapper.__init__(self, factory, wrappedProtocol)
     self._connectedDeferred = connectedDeferred
     self._host = host
     self._port = port
     self._optimistic = optimistic
     self._buf = ''
     self.state = 0
Exemplo n.º 5
0
 def __init__(self, *args, **kwargs):
     ProtocolWrapper.__init__(self, *args, **kwargs)
     self.pending_frames = []
Exemplo n.º 6
0
 def __init__(self, factory, wrappedProtocol, _connectWrapped=True):
     ProtocolWrapper.__init__(self, factory, wrappedProtocol)
     self._connectWrapped = _connectWrapped
Exemplo n.º 7
0
 def __init__(self, parent, session):
     resource.Resource.__init__(self)
     ProtocolWrapper.__init__(self, None, session)
     self.parent = parent
     self.session = session
     self.putChild("", self)
Exemplo n.º 8
0
 def __init__(self, *args, **kwargs):
     ProtocolWrapper.__init__(self, *args, **kwargs)
     self.buf = ''
Exemplo n.º 9
0
 def __init__(self, factory, wrappedProtocol, transport, topic):
     ProtocolWrapper.__init__(self, factory, wrappedProtocol)
     self.topic = topic
     self.makeConnection(transport)
Exemplo n.º 10
0
 def __init__(self, *args, **kwargs):
     ProtocolWrapper.__init__(self, *args, **kwargs)
     # The application level protocol is the sentinel at the tail
     # of the linked list stack of protocol wrappers.  The stack
     # begins at this sentinel.
     self._tailProtocol = self._currentProtocol = self.wrappedProtocol
Exemplo n.º 11
0
 def __init__(self, factory, addr):
     ProtocolWrapper.__init__(self, factory, None)
     self.addr = addr
Exemplo n.º 12
0
 def __init__(self, *args, **kwargs):
     ProtocolWrapper.__init__(self, *args, **kwargs)
     self.writesOutstanding = False
     self.loseConnectionWhenReady = False
     self.writeLimit = None
     self.buf = ''