Versions in this module Expand all Collapse all v0 v0.0.2 Mar 15, 2024 Changes in this version + type ButtonMask uint8 + const Button4 + const Button5 + const Button6 + const Button7 + const Button8 + const ButtonLeft + const ButtonMiddle + const ButtonRight + type ClientAuth interface + Handshake func(io.ReadWriteCloser) error + SecurityType func() uint8 + type ClientAuthNone byte + func (*ClientAuthNone) Handshake(closer io.ReadWriteCloser) error + func (*ClientAuthNone) SecurityType() uint8 + type ClientConfig struct + Auth []ClientAuth + Exclusive bool + ServerMessages []common.ServerMessage + type ClientConn struct + ColorMap common.ColorMap + DesktopName string + Encs []common.IEncoding + FrameBufferHeight uint16 + FrameBufferWidth uint16 + Listeners *common.MultiListener + PixelFormat common.PixelFormat + func NewClientConn(c net.Conn, cfg *ClientConfig) (*ClientConn, error) + func (c *ClientConn) Close() error + func (c *ClientConn) CurrentPixelFormat() *common.PixelFormat + func (c *ClientConn) CutText(text string) error + func (c *ClientConn) Encodings() []common.IEncoding + func (c *ClientConn) FramebufferUpdateRequest(incremental bool, x, y, width, height uint16) error + func (c *ClientConn) KeyEvent(keysym uint32, down bool) error + func (c *ClientConn) PointerEvent(mask ButtonMask, x, y uint16) error + func (c *ClientConn) Read(bytes []byte) (n int, err error) + func (c *ClientConn) SetEncodings(encs []common.IEncoding) error + func (c *ClientConn) SetPixelFormat(format *common.PixelFormat) error + func (c *ClientConn) Write(bytes []byte) (n int, err error) + func (conn *ClientConn) Connect() error + type MsgBell byte + func (*MsgBell) Type() uint8 + func (fbm *MsgBell) CopyTo(r io.Reader, w io.Writer, c common.IClientConn) error + func (m *MsgBell) Read(c common.IClientConn, r *common.RfbReadHelper) (common.ServerMessage, error) + func (m *MsgBell) String() string + type MsgFramebufferUpdate struct + Rectangles []common.Rectangle + func (*MsgFramebufferUpdate) Type() uint8 + func (fbm *MsgFramebufferUpdate) CopyTo(r io.Reader, w io.Writer, c common.IClientConn) error + func (fbm *MsgFramebufferUpdate) Read(c common.IClientConn, r *common.RfbReadHelper) (common.ServerMessage, error) + func (m *MsgFramebufferUpdate) String() string + type MsgServerCutText struct + Text string + func (*MsgServerCutText) Type() uint8 + func (fbm *MsgServerCutText) CopyTo(r io.Reader, w io.Writer, c common.IClientConn) error + func (m *MsgServerCutText) Read(conn common.IClientConn, r *common.RfbReadHelper) (common.ServerMessage, error) + func (m *MsgServerCutText) String() string + type MsgServerFence byte + func (*MsgServerFence) Type() uint8 + func (fbm *MsgServerFence) CopyTo(r io.Reader, w io.Writer, c common.IClientConn) error + func (m *MsgServerFence) String() string + func (sf *MsgServerFence) Read(info common.IClientConn, c *common.RfbReadHelper) (common.ServerMessage, error) + type MsgSetColorMapEntries struct + Colors []common.Color + FirstColor uint16 + func (*MsgSetColorMapEntries) Type() uint8 + func (fbm *MsgSetColorMapEntries) CopyTo(r io.Reader, w io.Writer, c common.IClientConn) error + func (m *MsgSetColorMapEntries) Read(c common.IClientConn, r *common.RfbReadHelper) (common.ServerMessage, error) + func (m *MsgSetColorMapEntries) String() string + type PasswordAuth struct + Password string + func (p *PasswordAuth) Handshake(c io.ReadWriteCloser) error + func (p *PasswordAuth) SecurityType() uint8 + type WriteTo struct + Name string + Writer io.Writer + func (p *WriteTo) Consume(seg *common.RfbSegment) error