Documentation
¶
Overview ¶
Package rfb implements the host side of Crabfleet's RFB 3.8 profile.
Index ¶
- Constants
- Variables
- 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
- type Server
- type ServerConfig
- type SessionConfig
Constants ¶
View Source
const ( SecurityVNC = 2 SecurityARD = 30 EncodingTight int32 = 7 EncodingPointerPosition int32 = -232 EncodingCursor int32 = -239 EncodingCursorWithAlpha int32 = -314 MaxEncodings = 256 MaxDesktopName = 4096 MaxSecurityReason = 4096 MaxTightJPEGLength = 1 << 22 )
Variables ¶
View Source
var (
Version38Banner = []byte("RFB 003.008\n")
)
Functions ¶
func TightCompactLength ¶
func VNCChallengeResponse ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(config ServerConfig) (*Server, error)
type ServerConfig ¶
type ServerConfig struct {
Session SessionConfig
MaxSessions int
}
Click to show internal directories.
Click to hide internal directories.