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

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

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