private void SetState(VncState newState) { var o = VncState; vncState = newState; OnStateChanged?.Invoke(this, new VncStateChangedEventArgs(o, newState)); }
public VncClient(byte bitsPerPixel = 16, byte depth = 8) { tcpClient = new TcpClient() { NoDelay = true, SendTimeout = Timeout, ReceiveTimeout = Timeout }; securityTypes = Array.Empty <byte>(); pixelFormat = new PixelFormat(bitsPerPixel, depth); Timeout = 30 * 1000; vncState = VncState.NotConnected; }
public VncStateChangedEventArgs(VncState oldState, VncState newState) { OldState = oldState; NewState = newState; }