Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnexpectedX224 = errors.New("unexpected x224")
Functions ¶
This section is empty.
Types ¶
type BitmapData ¶
type BitmapData struct { DestLeft uint16 DestTop uint16 DestRight uint16 DestBottom uint16 Width uint16 Height uint16 BitsPerPixel uint16 Flags BitmapDataFlag BitmapLength uint16 BitmapComprHdr *CompressedDataHeader BitmapDataStream []byte }
func (*BitmapData) Deserialize ¶
func (d *BitmapData) Deserialize(wire io.Reader) error
type BitmapDataFlag ¶
type BitmapDataFlag uint16
const ( // BitmapDataFlagCompression BITMAP_COMPRESSION BitmapDataFlagCompression BitmapDataFlag = 0x0001 // BitmapDataFlagNoHDR NO_BITMAP_COMPRESSION_HDR BitmapDataFlagNoHDR BitmapDataFlag = 0x0400 )
type CompressedDataHeader ¶
type CompressedDataHeader struct { CbCompMainBodySize uint16 CbScanWidth uint16 CbUncompressedSize uint16 }
func (*CompressedDataHeader) Deserialize ¶
func (h *CompressedDataHeader) Deserialize(wire io.Reader) error
type InputEventPDU ¶
type InputEventPDU struct {
// contains filtered or unexported fields
}
func NewInputEventPDU ¶
func NewInputEventPDU(eventData []byte) *InputEventPDU
func (*InputEventPDU) Serialize ¶
func (pdu *InputEventPDU) Serialize() []byte
func (*InputEventPDU) SerializeLength ¶
func (pdu *InputEventPDU) SerializeLength(value int, w io.Writer) error
type PaletteEntry ¶
func (*PaletteEntry) Deserialize ¶
func (e *PaletteEntry) Deserialize(wire io.Reader) error
type Protocol ¶
type Protocol struct {
// contains filtered or unexported fields
}
func New ¶
func New(conn io.ReadWriter) *Protocol
func (*Protocol) Send ¶
func (i *Protocol) Send(pdu *InputEventPDU) error
type Update ¶
type Update struct { UpdateCode UpdateCode // contains filtered or unexported fields }
type UpdateCode ¶
type UpdateCode uint8
const ( UpdateCodeOrders UpdateCode = 0x0 UpdateCodeBitmap UpdateCode = 0x1 UpdateCodePalette UpdateCode = 0x2 UpdateCodeSynchronize UpdateCode = 0x3 UpdateCodeSurfCMDs UpdateCode = 0x4 UpdateCodePTRNull UpdateCode = 0x5 UpdateCodePTRDefault UpdateCode = 0x6 UpdateCodePTRPosition UpdateCode = 0x8 UpdateCodeColor UpdateCode = 0x9 UpdateCodeCached UpdateCode = 0xa UpdateCodePointer UpdateCode = 0xb UpdateCodeLargePointer UpdateCode = 0xc )
type UpdatePDU ¶
type UpdatePDU struct { Action UpdatePDUAction Flags UpdatePDUFlag Data []byte // contains filtered or unexported fields }
type UpdatePDUAction ¶
type UpdatePDUAction uint8
const ( UpdatePDUActionFastPath UpdatePDUAction = 0x0 UpdatePDUActionX224 UpdatePDUAction = 0x3 )
type UpdatePDUFlag ¶
type UpdatePDUFlag uint8
const ( UpdatePDUFlagSecureChecksum UpdatePDUFlag = 0x1 UpdatePDUFlagEncrypted UpdatePDUFlag = 0x2 )
Click to show internal directories.
Click to hide internal directories.