コード例 #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("My ETHER TCP Server - ver. 1.0");

            EtherServer server = new EtherServer(5445);

            Console.WriteLine("Server listening...");

            while (true)
            {
                server.ProcessClients();

                // prevent high CPU usage
                Thread.Sleep(10);
            }
        }
コード例 #2
0
 public EtherClient(EtherServer server) : base()
 {
     Address = 255;
     Server  = server;
 }