Documentation
¶
Overview ¶
rfb.go
Index ¶
Constants ¶
View Source
const ( RFB003003 = "RFB 003.003\n" RFB003007 = "RFB 003.007\n" RFB003008 = "RFB 003.008\n" )
ProtocolVersion
View Source
const ( SEC_INVALID uint8 = 0 SEC_NONE uint8 = 1 SEC_VNC uint8 = 2 )
SecurityType
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitRect ¶
type BitRect struct {
Rects []Rectangles
Pf *PixelFormat
}
type ClientCutText ¶
type PixelFormat ¶
type PixelFormat struct {
BitsPerPixel uint8 `struc:"little"`
Depth uint8 `struc:"little"`
BigEndianFlag uint8 `struc:"little"`
TrueColorFlag uint8 `struc:"little"`
RedMax uint16 `struc:"little"`
GreenMax uint16 `struc:"little"`
BlueMax uint16 `struc:"little"`
RedShift uint8 `struc:"little"`
GreenShift uint8 `struc:"little"`
BlueShift uint8 `struc:"little"`
Padding uint16 `struc:"little"`
Padding1 uint8 `struc:"little"`
}
func NewPixelFormat ¶
func NewPixelFormat() *PixelFormat
func ReadPixelFormat ¶
func ReadPixelFormat(r io.Reader) *PixelFormat
type PointerEvent ¶
type RFB ¶
type RFB struct {
core.Transport
Version string
SecurityLevel uint8
ServerName string
PixelFormat *PixelFormat
NbRect int
CurrentRect *Rectangle
Password string
}
func (*RFB) SendClientCutText ¶
func (fb *RFB) SendClientCutText(t *ClientCutText)
func (*RFB) SendKeyEvent ¶
func (*RFB) SendPointEvent ¶
func (fb *RFB) SendPointEvent(p *PointerEvent)
type RFBConn ¶
type RFBConn struct {
emission.Emitter
// The Socket connection to the client
Conn net.Conn
NbRect uint16
BitRect *BitRect
// contains filtered or unexported fields
}
func NewRFBConn ¶
type Rectangles ¶
type ServerCutTextHeader ¶
type ServerInit ¶
type ServerInit struct {
Width uint16 `struc:"little"`
Height uint16 `struc:"little"`
PixelFormat *PixelFormat `struc:"little"`
}
Click to show internal directories.
Click to hide internal directories.