Пример #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();
 }
Пример #3
0
 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;
 }
Пример #5
0
 private void TcpAppServer_ClientConnected(object sender, TcpServerEventArgs e)
 {
     AddClientToAppClientsList(e.Client);
 }