Documentation ¶
Index ¶
- Constants
- Variables
- func CaptureScreenInternal() *image.RGBA
- func FillMap(m map[uint32]uint32)
- func TestRat()
- type Client
- func (c *Client) Read(value interface{})
- func (c *Client) ReadBytes(count int) (res []byte)
- func (c *Client) ReadPadding(count int)
- func (c *Client) SendFrameUpdate(img []byte)
- func (c *Client) Write(value interface{})
- func (c *Client) WriteBytes(data []byte)
- func (c *Client) WriteString(str string)
- type Conn
- type FrameBufferRequest
- type FrameUpdateRect
- type PixelFormat
- type VNCClient
- func (c *VNCClient) ClientInit() error
- func (c *VNCClient) GetFrameUpdate() *image.RGBA
- func (c *VNCClient) Run()
- func (c *VNCClient) SendFrameBufferUpdateRequest(x, y, width, height uint16)
- func (c *VNCClient) SendKeyEvent(keycode uint32, press bool)
- func (c *VNCClient) SendPointerEvent(x, y uint16, buttonMask uint8)
- func (c *VNCClient) SendSetEncodings()
- func (c *VNCClient) SendSetPixFormat()
- type VNCServer
- type WSProxy
Constants ¶
Variables ¶
View Source
var ( MessageTypeFramebufferUpdate uint8 = FramebufferUpdateRequest EncodingTypeRaw uint32 = 0 )
View Source
var ( ChanBufferSize = 1024 FPS = 50 )
View Source
var ( MsgPointerEvent string = "pe" MsgKeyBoardEvent = "ke" MsgFrameUpdateRequest = "re" FullScreen uint16 = 65535 )
Functions ¶
func CaptureScreenInternal ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ReadPadding ¶
func (*Client) SendFrameUpdate ¶
func (*Client) WriteBytes ¶
func (*Client) WriteString ¶
type FrameBufferRequest ¶
type FrameUpdateRect ¶
type PixelFormat ¶
type PixelFormat struct { BitsPerPixel uint8 Depth uint8 BigEndian uint8 TrueColor uint8 RedMax uint16 GreenMax uint16 BlueMax uint16 RedShift uint8 GreenShift uint8 BlueShift uint8 P1, P2, P3 uint8 // padding bytes }
var (
PixelFormatRGBA PixelFormat
)
type VNCClient ¶
type VNCClient struct {
// contains filtered or unexported fields
}
func (*VNCClient) ClientInit ¶
func (*VNCClient) GetFrameUpdate ¶
func (*VNCClient) SendFrameBufferUpdateRequest ¶
func (*VNCClient) SendKeyEvent ¶
func (*VNCClient) SendPointerEvent ¶
func (*VNCClient) SendSetEncodings ¶
func (c *VNCClient) SendSetEncodings()
func (*VNCClient) SendSetPixFormat ¶
func (c *VNCClient) SendSetPixFormat()
type VNCServer ¶
type VNCServer struct {
// contains filtered or unexported fields
}
func CreateServer ¶
Click to show internal directories.
Click to hide internal directories.