rfb

package
v0.0.0-...-bd23dd1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PixelFormat

type PixelFormat struct {
	Bits       int
	Depth      int
	BigEndian  bool
	TrueColour bool
	RedMax     uint
	GreenMax   uint
	BlueMax    uint
	RedShift   uint
	GreenShift uint
	BlueShift  uint
}

func ParsePixelFormat

func ParsePixelFormat(buf []byte) PixelFormat

func (PixelFormat) BytesPerPixel

func (p PixelFormat) BytesPerPixel() int

func (PixelFormat) ReadPixel

func (p PixelFormat) ReadPixel(buf []byte) (int, color.RGBA)

func (PixelFormat) String

func (p PixelFormat) String() string

type RFB

type RFB struct {
	// EmbedAssets controls whether static assets should be linked or embedded in the output HTML
	EmbedAssets bool
	// contains filtered or unexported fields
}

An RFB represents a captured VNC session

func New

func New(out io.WriteCloser) (*RFB, error)

New instatiates a new RFB struct

func (*RFB) ClientBytes

func (rfb *RFB) ClientBytes(t time.Duration, offset int, buf []byte) error

ClientBytes adds a frame of bytes to the Client-side buffer

func (*RFB) Close

func (rfb *RFB) Close() error

Close finalizes the replay of the VNC session

func (*RFB) ServerBytes

func (rfb *RFB) ServerBytes(t time.Duration, offset int, buf []byte) error

ServerBytes adds a frame of bytes to the Server-side buffer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL