ConnectionEndpoint connection_endpoint = new ConnectionEndpoint( remote_address );
connection_endpoint.addProtocol( ProtocolEndpointFactory.createEndpoint( ProtocolEndpoint.PROTOCOL_TCP, remote_address ));
com.aelitis.azureus.core.networkmanager.NetworkConnection core_conn =
NetworkManager.getSingleton().createConnection( connection_endpoint, new MessageStreamEncoderAdapter( encoder ), new MessageStreamDecoderAdapter( decoder ), false, false, null );
return new ConnectionImpl( core_conn, false );
}