示例#1
0
 private void TcpAppServer_ClientDisconnected(object sender, TcpServerEventArgs e)
 {
     e.Client.MessageReceived -= Client_MessageReceived;
 }
示例#2
0
 private void Server_ClientConnected(object sender, TcpServerEventArgs e)
 {
     RefreshControl();
 }
 private void TcpAppServer_ClientDisconnected(object sender, TcpServerEventArgs e)
 {
     //Client Disconnected - clean up queued message
     lock (CommandQueue) { CommandQueue.RemoveAll(x => x.AppClient.Connection == e.Client); }
 }
 private void TcpAppServer_ClientConnected(object sender, TcpServerEventArgs e)
 {
     //e.Client.MessageReceived += Client_MessageReceived;
     e.Client.ProcessReceivedMessageCallback = Client_ProcessReceivedMessage;
 }
 private void TcpAppServer_ClientConnected(object sender, TcpServerEventArgs e)
 {
     AddClientToAppClientsList(e.Client);
 }