gorfb

package module
v0.0.0-...-d8d10bb Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2015 License: MIT Imports: 9 Imported by: 0

README

This aims to become a full blown RFB (VNC) server library written in go.

The current code design tries to avoid blocking as much as possible.
But, at the moment encoding of dirty rectangles is still serialized into
a single goroutine :(
Only raw encoding is supported so far, and no authentication mechanism is
supported.
Tracking of dirty regions uses only up to two rectangles at a time.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CutEvent

type CutEvent struct {
	Txt string
}

type Dirty

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

type InputEvent

type InputEvent struct {
	T    int
	Key  uint32
	Pos  image.Point
	Mask uint8
}

type PixelFormat

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

type RfbClient

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

type RfbServer

type RfbServer struct {
	Input chan InputEvent
	Txt   chan CutEvent
	Getfb chan draw.Image
	Relfb chan []image.Rectangle
	// contains filtered or unexported fields
}

func ServeDumbFb

func ServeDumbFb(port string, w uint16, h uint16) (*RfbServer, error)

func Server

func Server(port string, img draw.Image) (*RfbServer, error)

func (*RfbServer) Shutdown

func (serv *RfbServer) Shutdown()

func (*RfbServer) Wait

func (serv *RfbServer) Wait()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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