예제 #1
0
 def connection_made(self, transport):
     self.transport = transport
     peer = transport.get_extra_info('peername')
     self.peer = peer2str(peer)
     self.log.debug('RawSocker Asyncio: Connection made with peer {peer}', peer=self.peer)
     self._buffer = b''
     self._header = None
     self._wait_closed = asyncio.Future()
예제 #2
0
 def connection_made(self, transport):
     self.transport = transport
     peer = transport.get_extra_info('peername')
     self.peer = peer2str(peer)
     self.log.debug('RawSocker Asyncio: Connection made with peer {peer}', peer=self.peer)
     self._buffer = b''
     self._header = None
     self._wait_closed = txaio.create_future()
예제 #3
0
    def connection_made(self, transport):
        # the peer we are connected to
        try:
            self.peer = peer2str(transport.get_extra_info('peername'))
        except:
            self.peer = 'process:{}'.format(self.transport.pid)
        self.peer_transport = 'rawsocket'

        PrefixProtocol.connection_made(self, transport)
        self._handshake_done = False
예제 #4
0
    def connection_made(self, transport):
        self.transport = transport

        self.receive_queue = deque()
        self._consume()

        try:
            self.peer = peer2str(transport.get_extra_info('peername'))
        except:
            self.peer = u"?"

        self._connectionMade()
예제 #5
0
    def connection_made(self, transport):
        self.transport = transport

        self.receive_queue = deque()
        self._consume()

        try:
            self.peer = peer2str(transport.get_extra_info('peername'))
        except:
            self.peer = u"?"

        self._connectionMade()
예제 #6
0
    def connection_made(self, transport):
        self.transport = transport
        self.receive_queue = deque()
        self._consume()

        # the peer we are connected to
        try:
            self.peer = peer2str(transport.get_extra_info('peername'))
        except:
            self.peer = 'process:{}'.format(self.transport.pid)
        self.peer_transport = 'websocket'

        self._connectionMade()