public PacketProcessor(Connection connection, int destinationPort, ReliableSlowStream rss, ReliableFastStream rfs, UnreliableStream us, ILogger logger) { _connection = connection; _destinationPort = destinationPort; _streams = new IStream[] { rss, rfs, us }; _logger = logger; }
public ReliableFastStream(ILogger logger) { _logger = logger; }
public ReliableSlowStream(ILogger logger) { _logger = logger; }
public static ConnectionClasses GetConnectionClasses(int sourcePort, int destinationPort, ILogger logger) { return(new ConnectionClasses(sourcePort, destinationPort, logger)); }
public static ConnectionClasses GetConnectionClasses(int sourcePort, int delayInMs, int packetLossPct, ILogger logger) { return(new ConnectionClasses(sourcePort, delayInMs, packetLossPct, logger)); }