Beispiel #1
0
 def connection_made(self, transport: asyncio.Transport):
     self._transport = transport
     self.peername = self._transport.get_extra_info("peername")
     transport.write(self.local._connect_buffer)
     self.ready = True
     CONNECTION_MADE_COUNT.inc()
     ACTIVE_CONNECTION_COUNT.inc()
Beispiel #2
0
 def connection_made(self, transport):
     self._transport = transport
     peername = self._transport.get_extra_info("peername")
     self._handler.handle_connection_made(flag.TRANSPORT_TCP, transport,
                                          peername)
     CONNECTION_MADE_COUNT.inc()
     ACTIVE_CONNECTION_COUNT.inc()
Beispiel #3
0
    def handle_connection_made(self, transport_type, transport, peername):
        self._init_transport(transport, peername, transport_type)
        if transport_type == flag.TRANSPORT_TCP and self.server.limited:
            self.server.log_limited_msg()
            self.close()
        self._init_cryptor()

        CONNECTION_MADE_COUNT.inc()
        ACTIVE_CONNECTION_COUNT.inc()
Beispiel #4
0
 def handle_connection_made(self, transport_protocol, transport, peername):
     self._init_transport(transport, peername, transport_protocol)
     self._init_cipher()
     ACTIVE_CONNECTION_COUNT.inc()
     CONNECTION_MADE_COUNT.inc()