Represents the Presentation layer.
Esempio n. 1
0
        public void CreateServer()
        {
            server = new TcpListener(IPAddress.Loopback, 10103);
            server.Start();

            presentation = new Presentation("localhost", 10103);
            connection = server.AcceptTcpClient();
        }
Esempio n. 2
0
        public void ResetServer()
        {
            presentation.Close();
            connection.Close();
            presentation = new Presentation("localhost", 10103);
            connection = server.AcceptTcpClient();

            while (server.Pending())
                server.AcceptTcpClient().Close();
        }