示例#1
0
 public void RunBeforeEveryTest()
 {
     _utility = new NetworkUtilities();
     _testConnectionServer = new TcpConnectionServer(_utility.GetLocalIPAddress(), 8080);
     _testScheduler        = new CommandScheduler();
     _testServer           = new EditorConnectionServer(_testConnectionServer, _testScheduler, 15000);
 }
示例#2
0
    private void Install()
    {
        var service          = new NetworkUtilities();
        var scheduler        = new CommandScheduler();
        var serverConnection = new TcpConnectionServer(service.GetLocalIPAddress(), ServerPort);

        _server         = new EditorConnectionServer(serverConnection, scheduler, BroadcastPort);
        ServerText.text = string.Format("Server running on {0}", serverConnection.Adress + ":" + serverConnection.Port.ToString());
    }
 // Use this for initialization
 void Start()
 {
     _server = new EditorConnectionServer(8080, 15000);
     _server.DataReceived += SendCommandToLittleGuy;
     _server.StartServer();
 }
        public void RunBeforeEveryTest()
        {
            _dummyConnection = Substitute.For <IConnectionServer>();

            _testServer = new EditorConnectionServer(_dummyConnection, Substitute.For <ICommandScheduler>(), 15000);
        }