private void CloseHost(IVNC_Socket h) { if (h != null) { h.Dispose(); } }
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(); } }