protocol = PacketTransportType.TCP; // Default protocol
if (protocol.equals(PacketTransportType.TCP) ||
protocol.equals(PacketTransportType.TCPS))
{
return new TcpPacketTransport(id,transportURI,settings);
}
if (protocol.equals(PacketTransportType.TCPNIO))
{
return new NIOTcpPacketTransport(id,ClientEnvironment.getMultiplexer(),transportURI,settings);