Ejemplo n.º 1
0
 public LogConnection(TcpClient client, DebugWriter debug, ConnectionTracker connectionTracker, Natter natter)
 {
     this.client            = client;
     this.debug             = debug;
     this.connectionTracker = connectionTracker;
     this.natter            = natter;
     stream = client.GetStream();
 }
Ejemplo n.º 2
0
        public void Start()
        {
            connectionTracker = (ConnectionTracker)services["connectionTracker"];
            natter            = (Natter)services["natter"];

            logServer.Start();
            debug.Log(0, "LogPort = " + ((IPEndPoint)logServer.LocalEndpoint).Port);
            logServer.BeginAcceptTcpClient(NewLogConnection, null);
        }