Пример #1
0
 private void CloseHost(IVNC_Socket h)
 {
     if (h != null)
     {
         h.Dispose();
     }
 }
Пример #2
0
 private void Process_Connections(IVNC_Socket h, Func <IVNC_Socket, bool> process_func)
 {
     Debug.WriteLine("Connection attempt from " + h.ClientIpAddress + " to " + h.ClientPort);
     if (!process_func(h))
     {
         Debug.WriteLine("Disconnecting " + h.ClientIpAddress);
         h.Dispose();
     }
 }