Beispiel #1
0
 public void Should_pass_through_river_over_fiddler()
 {
     using (var riverServer = new RiverServer(4550))
         using (var server = new SocksServerToRiverClient(4549, "localhost:8888"))
             using (var socks = new Socks4Client("localhost", 4549, "httpbin.org", 80))
             {
                 TestConnction(socks);
             }
 }
Beispiel #2
0
        public void RunImpl()
        {
            var outgoingInterface = string.IsNullOrWhiteSpace(Settings.Default.OutgoingInterfaceIP)
                                ? default(IPEndPoint)
                                : new IPEndPoint(IPAddress.Parse(Settings.Default.OutgoingInterfaceIP), 0);

            var bw = Settings.Default.Bandwidth;

            if (bw <= 0)
            {
                bw = 1024 * 1024;
            }

            _server           = new SocksServerToRiverClient(Settings.Default.ListeningPort, Settings.Default.RiverServers, outgoingInterface);
            _server.Bandwidth = bw;
        }
Beispiel #3
0
 public static void ClassInitialize(TestContext tc)
 {
     _riverMouth  = new RiverServer(300);
     _riverSource = new SocksServerToRiverClient(301, "127.0.0.1:300");
 }
Beispiel #4
0
 public static void ClassInitialize(TestContext tc)
 {
     _tunnel = new SocksServerToRiverClient(4235, _mouth + ":80", new IPEndPoint(IPAddress.Parse("10.161.88.23"), 0));
 }