public ClientConnection( SocketChannel channel ) {
decoder = new AZMessageDecoder();
InetSocketAddress remote = null; // unfortunately we don't have an address at this point (see NATTestService)
ProtocolEndpointTCP pe =
(ProtocolEndpointTCP)ProtocolEndpointFactory.createEndpoint( ProtocolEndpoint.PROTOCOL_TCP, remote );
light_transport = pe.connectLightWeight( channel );
out_queue = new OutgoingMessageQueueImpl( encoder );
out_queue.setTransport( light_transport );
last_activity_time = System.currentTimeMillis();
}