Esempio n. 1
0
        static void Server_ClientConnected(object sender, NetFrame.TCP.Server.Sock.Synchronous.SocketEventArgs e)
        {
            Console.WriteLine("客户端连接成功" + e._handle.client.RemoteEndPoint.ToString());
            socket = e._handle;

            timer          = new System.Timers.Timer();
            timer.Elapsed += timer_Elapsed;
            timer.Interval = 80;
            timer.Enabled  = true;
        }
Esempio n. 2
0
 static void Server_DataReceived(object sender, NetFrame.TCP.Server.Sock.Synchronous.SocketEventArgs e)
 {
 }
Esempio n. 3
0
 static void Server_ClientDisconnected(object sender, NetFrame.TCP.Server.Sock.Synchronous.SocketEventArgs e)
 {
     socket = null;
 }
Esempio n. 4
0
 static void Server_CompletedSend(object sender, NetFrame.TCP.Server.Sock.Synchronous.SocketEventArgs e)
 {
 }