Versions in this module Expand all Collapse all v1 v1.0.3 Mar 20, 2024 v1.0.2 Mar 20, 2024retracted v1.0.1 Mar 19, 2024retracted v1.0.0 Mar 19, 2024retracted Changes in this version + const AUTH_FAIL + const ProtoVersion33 + const ProtoVersion38 + const ProtoVersionLength + const ProtoVersionUnknown + const SecSubTypeUnknown + const SecSubTypeVeNCrypt01Plain + const SecSubTypeVeNCrypt01TLSNone + const SecSubTypeVeNCrypt01TLSPlain + const SecSubTypeVeNCrypt01TLSVNC + const SecSubTypeVeNCrypt01Unknown + const SecSubTypeVeNCrypt01X509None + const SecSubTypeVeNCrypt01X509Plain + const SecSubTypeVeNCrypt01X509VNC + const SecSubTypeVeNCrypt02Plain + const SecSubTypeVeNCrypt02TLSNone + const SecSubTypeVeNCrypt02TLSPlain + const SecSubTypeVeNCrypt02TLSVNC + const SecSubTypeVeNCrypt02Unknown + const SecSubTypeVeNCrypt02X509None + const SecSubTypeVeNCrypt02X509Plain + const SecSubTypeVeNCrypt02X509VNC + const SecTypeNone + const SecTypeUnknown + const SecTypeVNC + const SecTypeVeNCrypt + const StandardVendor + const TightVncVendor + const TridiaVncVendor + var DefaultClientMessages = []common.ClientMessage + func ParseProtoVersion(pv []byte) (uint, uint, error) + func ServerClientInitHandler(cfg *ServerConfig, c *ServerConn) error + func ServerSecurityHandler(cfg *ServerConfig, c *ServerConn) error + func ServerServerInitHandler(cfg *ServerConfig, c *ServerConn) error + func ServerVersionHandler(cfg *ServerConfig, c *ServerConn) error + func SetUint32(buf []byte, pos int, val uint32) + func TcpServe(url string, cfg *ServerConfig) error + func WsServe(url string, cfg *ServerConfig) error + type FramebufferUpdate struct + NumRect uint16 + Rects []*common.Rectangle + type Key uint32 + type Keys []Key + type MsgClientCutText struct + Length uint32 + Text []byte + func (*MsgClientCutText) Read(c io.Reader) (common.ClientMessage, error) + func (*MsgClientCutText) Type() common.ClientMessageType + func (msg *MsgClientCutText) Write(c io.Writer) error + type MsgClientFence struct + func (*MsgClientFence) Type() common.ClientMessageType + func (cf *MsgClientFence) Read(c io.Reader) (common.ClientMessage, error) + func (msg *MsgClientFence) Write(c io.Writer) error + type MsgClientQemuExtendedKey struct + IsDown uint16 + KeyCode uint32 + KeySym uint32 + SubType uint8 + func (*MsgClientQemuExtendedKey) Read(c io.Reader) (common.ClientMessage, error) + func (*MsgClientQemuExtendedKey) Type() common.ClientMessageType + func (msg *MsgClientQemuExtendedKey) Write(c io.Writer) error + type MsgFramebufferUpdateRequest struct + Height uint16 + Inc uint8 + Width uint16 + X uint16 + Y uint16 + func (*MsgFramebufferUpdateRequest) Read(c io.Reader) (common.ClientMessage, error) + func (*MsgFramebufferUpdateRequest) Type() common.ClientMessageType + func (msg *MsgFramebufferUpdateRequest) Write(c io.Writer) error + type MsgKeyEvent struct + Down uint8 + Key Key + func (*MsgKeyEvent) Read(c io.Reader) (common.ClientMessage, error) + func (*MsgKeyEvent) Type() common.ClientMessageType + func (msg *MsgKeyEvent) Write(c io.Writer) error + type MsgPointerEvent struct + Mask uint8 + X uint16 + Y uint16 + func (*MsgPointerEvent) Read(c io.Reader) (common.ClientMessage, error) + func (*MsgPointerEvent) Type() common.ClientMessageType + func (msg *MsgPointerEvent) Write(c io.Writer) error + type MsgQEMUExtKeyEvent struct + DownFlag uint16 + KeyCode uint32 + KeySym Key + SubmessageType uint8 + func (*MsgQEMUExtKeyEvent) Read(c io.Reader) (common.ClientMessage, error) + func (*MsgQEMUExtKeyEvent) Type() common.ClientMessageType + func (msg *MsgQEMUExtKeyEvent) Write(c io.Writer) error + type MsgSetEncodings struct + EncNum uint16 + Encodings []common.EncodingType + func (*MsgSetEncodings) Read(c io.Reader) (common.ClientMessage, error) + func (*MsgSetEncodings) Type() common.ClientMessageType + func (msg *MsgSetEncodings) Write(c io.Writer) error + type MsgSetPixelFormat struct + PF common.PixelFormat + func (*MsgSetPixelFormat) Read(c io.Reader) (common.ClientMessage, error) + func (*MsgSetPixelFormat) Type() common.ClientMessageType + func (msg *MsgSetPixelFormat) Write(c io.Writer) error + type SecurityHandler interface + Auth func(common.IServerConn) error + SubType func() SecuritySubType + Type func() SecurityType + type SecuritySubType uint32 + type SecurityType uint8 + type ServerAuthNone struct + func (*ServerAuthNone) Auth(c common.IServerConn) error + func (*ServerAuthNone) SubType() SecuritySubType + func (*ServerAuthNone) Type() SecurityType + type ServerAuthVNC struct + Pass string + func (*ServerAuthVNC) SubType() SecuritySubType + func (*ServerAuthVNC) Type() SecurityType + func (auth *ServerAuthVNC) Auth(c common.IServerConn) error + type ServerConfig struct + ClientMessages []common.ClientMessage + ColorMap *common.ColorMap + DesktopName []byte + Encodings []common.IEncoding + Height uint16 + NewConnHandler ServerHandler + PixelFormat *common.PixelFormat + SecurityHandlers []SecurityHandler + UseDummySession bool + Width uint16 + type ServerConn struct + Listeners *common.MultiListener + SessionId string + func NewServerConn(c io.ReadWriter, cfg *ServerConfig) (*ServerConn, error) + func (c *ServerConn) Close() error + func (c *ServerConn) ColorMap() *common.ColorMap + func (c *ServerConn) Conn() io.ReadWriter + func (c *ServerConn) CurrentPixelFormat() *common.PixelFormat + func (c *ServerConn) DesktopName() string + func (c *ServerConn) Encodings() []common.IEncoding + func (c *ServerConn) Height() uint16 + func (c *ServerConn) Protocol() string + func (c *ServerConn) Read(buf []byte) (int, error) + func (c *ServerConn) SetColorMap(cm *common.ColorMap) + func (c *ServerConn) SetDesktopName(name string) + func (c *ServerConn) SetEncodings(encs []common.EncodingType) error + func (c *ServerConn) SetHeight(h uint16) + func (c *ServerConn) SetPixelFormat(pf *common.PixelFormat) error + func (c *ServerConn) SetProtoVersion(pv string) + func (c *ServerConn) SetWidth(w uint16) + func (c *ServerConn) Width() uint16 + func (c *ServerConn) Write(buf []byte) (int, error) + type ServerHandler func(*ServerConfig, *ServerConn) error + type TightCapability struct + func (t *TightCapability) ReadFrom(r io.Reader) error + func (t *TightCapability) WriteTo(w io.Writer) error + type TightServerInit struct + ClientMessageCaps []TightCapability + EncodingCaps []TightCapability + ServerMessageCaps []TightCapability + func (t *TightServerInit) ReadFrom(r io.Reader) error + func (t *TightServerInit) WriteTo(w io.Writer) error + type WsHandler func(io.ReadWriter, *ServerConfig, string) + type WsServer struct + func (wsServer *WsServer) Listen(urlStr string, handlerFunc WsHandler)