コード例 #1
0
 protected void SetupMembers()
 {
     this.socketMock1           = new TunnelSocketMock();
     this.socketMock2           = new TunnelSocketMock();
     this.tunnel                = new TunnelMock(this.socketMock1);
     this.congestionControlBase = null;
     socketMock1.InterceptOutgoingPacket(packet => socketMock2.HandlePacket(packet));
 }
コード例 #2
0
 public void Setup()
 {
     socketMock = new TunnelSocketMock();
     congestion = new AIMDCongestionControl(socketMock, 25, 576, 1, 25, 5);
 }
コード例 #3
0
 public void SetUp()
 {
     mockSock   = new TunnelSocketMock();
     congestion = new SimpleCongestionControl(mockSock, 250, 500, 1, 500);
 }
コード例 #4
0
 public void Setup()
 {
     tunnelSocket = new TunnelSocketMock();
 }