Versions in this module Expand all Collapse all v0 v0.3.1 Aug 28, 2026 Changes in this version + const EncodingCursor + const EncodingCursorWithAlpha + const EncodingPointerPosition + const EncodingTight + const MaxDesktopName + const MaxEncodings + const MaxSecurityReason + const MaxTightJPEGLength + const SecurityARD + const SecurityVNC + var Version38Banner = []byte("RFB 003.008\n") + func EncodeJPEG(frame connect.Frame, quality int) ([]byte, error) + func ServeConn(ctx context.Context, connection net.Conn, config SessionConfig) error + func ServerInit(width, height int, name string) ([]byte, error) + func TightCompactLength(length int) ([]byte, error) + func VNCChallengeResponse(challenge []byte, password string) ([]byte, error) + func VerifyVNCResponse(challenge, response []byte, password string) (bool, error) + type Encodings struct + Cursor bool + CursorWithAlpha bool + PointerPosition bool + Tight bool + type Server struct + func NewServer(config ServerConfig) (*Server, error) + func (server *Server) Close() error + func (server *Server) Serve(ctx context.Context, listener net.Listener) error + type ServerConfig struct + MaxSessions int + Session SessionConfig + type SessionConfig struct + Backend connect.Backend + ChallengeReader io.Reader + DesktopName string + HandshakeTimeout time.Duration + JPEGQuality int + MediaTimeout time.Duration + Password string