use of com.biglybt.pifimpl.local.messaging.MessageStreamEncoderAdapter in project BiglyBT by BiglySoftware.
the class ConnectionManagerImpl method createConnection.
@Override
public Connection createConnection(InetSocketAddress remote_address, MessageStreamEncoder encoder, MessageStreamDecoder decoder) {
ConnectionEndpoint connection_endpoint = new ConnectionEndpoint(remote_address);
connection_endpoint.addProtocol(ProtocolEndpointFactory.createEndpoint(ProtocolEndpoint.PROTOCOL_TCP, remote_address));
com.biglybt.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);
}
Aggregations