go-rfb/conn.go
Vasiliy Tolstov c00b8c7ae0 change pixel format to pointer
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-01-23 02:04:27 +03:00

32 lines
583 B
Go

package rfb
import (
"io"
"net"
)
// Conn represents vnc conection
type Conn interface {
io.ReadWriteCloser
Conn() net.Conn
Config() interface{}
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() []byte
SetDesktopName([]byte)
Flush() error
Wait()
SetProtoVersion(string)
SetSecurityHandler(SecurityHandler) error
SecurityHandler() SecurityHandler
}