static void Main(string[] args)
        {
            var sv = new CServer();

            Console.WriteLine("Server started on port {0}", 4040);
            Console.ReadLine();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            CServer server = new CServer();

            server.Start();

            Console.ReadLine();
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            // A server has to open a channel only once when the server application launches
            TcpChannel serverChannel = new TcpChannel(8086);

            ChannelServices.RegisterChannel(serverChannel, false);

            // this will create the server's remote object
            CServer server = new CServer();

            System.Console.WriteLine("<enter> para sair...");
            System.Console.ReadLine();
        }