Example #1
0
        public void SetUp()
        {
            var settings = new PortMapperServerSettings
            {
                Logger = new TestLogger("Port Mapper"), Port = PortMapperPort
            };

            this.server = new PortMapperServer(Protocol.TcpAndUdp, IPAddress.Any, settings);
            this.server.Start();
        }
Example #2
0
        public void OneTimeSetUp()
        {
            var settings = new PortMapperServerSettings
            {
                Logger = new TestLogger("Port Mapper"),
                Port   = PortMapperPort
            };

            this.portMapperServer = new PortMapperServer(Protocol.TcpAndUdp, IPAddress.Loopback, settings);
            this.portMapperServer.Start();
        }