go-rfb/conn.go

27 lines
444 B
Go
Raw Normal View History

package vnc
import (
"io"
"net"
)
type Conn interface {
io.ReadWriteCloser
Conn() net.Conn
Protocol() string
PixelFormat() *PixelFormat
SetPixelFormat(*PixelFormat) error
ColorMap() *ColorMap
SetColorMap(*ColorMap)
Encodings() []Encoding
SetEncodings([]EncodingType) error
Width() uint16
Height() uint16
SetWidth(uint16)
SetHeight(uint16)
DesktopName() string
SetDesktopName(string)
Flush() error
SetProtoVersion(string)
}