public void Terminate() { Stop(); Console.WriteLine("disconnect server..."); PQ.DisconnectServer(); State = DeviceState.Uninitialized; }
private void OnServerBreak(IntPtr param, IntPtr callbackObject) { Console.WriteLine("server break, disconnect here"); PQ.DisconnectServer(); }