예제 #1
0
        static void Main()
        {
            Server = new BasicTcpServer("*", 10013);

            Server.Events.ClientConnected    += OnClientConnected;
            Server.Events.ClientDisconnected += OnClientDisconnected;
            Server.Events.DataReceived       += OnDataRecieved;
            Server.Events.ServerLog          += OnServerLog;

            Server.Start();

            Console.ReadKey();
        }
예제 #2
0
        static void Main()
        {
            Server = new BasicTcpServer("*", 11113);

            Server.Events.ClientConnected    += OnClientConnected;
            Server.Events.ClientDisconnected += OnClientDisconnected;
            Server.Events.DataReceived       += OnDataReceived;
            Server.Events.ServerLog          += OnServerLog;

            Server.Start();

            ReadCmd();
        }