Example #1
0
 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;
 }
Example #2
0
 public ReliableFastStream(ILogger logger)
 {
     _logger = logger;
 }
Example #3
0
 public ReliableSlowStream(ILogger logger)
 {
     _logger = logger;
 }
Example #4
0
 public static ConnectionClasses GetConnectionClasses(int sourcePort, int destinationPort, ILogger logger)
 {
     return(new ConnectionClasses(sourcePort, destinationPort, logger));
 }
Example #5
0
 public static ConnectionClasses GetConnectionClasses(int sourcePort, int delayInMs, int packetLossPct, ILogger logger)
 {
     return(new ConnectionClasses(sourcePort, delayInMs, packetLossPct, logger));
 }