vncclient

package
v0.0.0-...-efaf87d Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Zlib Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Con

func Con(conn net.Conn, bytesbuf *TCPWrapper, pullch PullCh)

func Handshake

func Handshake(conn io.ReadWriteCloser) error

func Run

func Run(conn net.Conn, ch PullCh)

func SetEncodings

func SetEncodings(conn net.Conn)

func WindowResizedEventDetail

func WindowResizedEventDetail(conn net.Conn, ev *sdl.WindowEvent, winw, winh int32)

func WriteRequest

func WriteRequest(conn net.Conn, u interface{})

Types

type Click

type Click struct {
	// contains filtered or unexported fields
}

type DesktopSize

type DesktopSize struct {
	Kind      uint8
	Padding   byte
	Width     uint16
	Height    uint16
	Screennum uint8
	Padding2  byte
}

type KP

type KP struct {
	// contains filtered or unexported fields
}

func KeyPress

func KeyPress(keydown uint32, key uint32) KP

type PullCh

type PullCh chan interface{}

type PullColorMap

type PullColorMap struct {
	Rect     sdl.Rect
	ColorNum int
	ColorMap []sdl.Color
	Buf      []byte
}

type PullRaw

type PullRaw struct {
	Rect sdl.Rect
	Buf  []byte
}

type PullReuseRect

type PullReuseRect struct {
	Rect      sdl.Rect
	ReuseRect sdl.Rect
}

type PullSmall

type PullSmall struct {
	Rect sdl.Rect
	Buf  []byte
}

type PullTightFill

type PullTightFill struct {
	Rect  sdl.Rect
	Color sdl.Color
}

type PullTightJPEG

type PullTightJPEG struct {
	Rect sdl.Rect
	Buf  []byte
}

type RGB

type RGB struct {
	R, G, B uint8
}

type Screen

type Screen struct {
	Id   uint32
	X    uint16
	Y    uint16
	W    uint16
	H    uint16
	Flag uint32
}

type TCPWrapper

type TCPWrapper struct {
	Buffer *bufio.Reader
	Conn   net.Conn
}

func (*TCPWrapper) Close

func (wrapper *TCPWrapper) Close() error

func (*TCPWrapper) Read

func (wrapper *TCPWrapper) Read(p []byte) (n int, err error)

type Updater

type Updater struct {
	// contains filtered or unexported fields
}

func NewUpdater

func NewUpdater(x int, y int, w int, h int) Updater

type ZlibStreamer

type ZlibStreamer struct {
	ZlibReaders [4]*zlib.Reader
	// contains filtered or unexported fields
}

func (*ZlibStreamer) GetCompressedlen

func (s *ZlibStreamer) GetCompressedlen() int

func (*ZlibStreamer) ReadBuf

func (s *ZlibStreamer) ReadBuf(clen int32, compctrl []byte, init bool) ([]byte, error)

Jump to

Keyboard shortcuts

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