2017-06-12 14:11:23 +03:00
|
|
|
package vnc
|
|
|
|
|
2017-06-13 01:52:07 +03:00
|
|
|
import (
|
|
|
|
"io"
|
|
|
|
"net"
|
|
|
|
)
|
2017-06-12 14:11:23 +03:00
|
|
|
|
|
|
|
type Conn interface {
|
|
|
|
io.ReadWriteCloser
|
2017-06-13 01:52:07 +03:00
|
|
|
Conn() net.Conn
|
2017-06-26 14:16:03 +03:00
|
|
|
Config() interface{}
|
2017-06-12 14:11:23 +03:00
|
|
|
Protocol() string
|
|
|
|
PixelFormat() *PixelFormat
|
2017-06-13 01:52:07 +03:00
|
|
|
SetPixelFormat(*PixelFormat) error
|
2017-06-12 14:11:23 +03:00
|
|
|
ColorMap() *ColorMap
|
|
|
|
SetColorMap(*ColorMap)
|
|
|
|
Encodings() []Encoding
|
2017-06-13 01:52:07 +03:00
|
|
|
SetEncodings([]EncodingType) error
|
2017-06-12 14:11:23 +03:00
|
|
|
Width() uint16
|
|
|
|
Height() uint16
|
|
|
|
SetWidth(uint16)
|
|
|
|
SetHeight(uint16)
|
2017-06-26 14:16:03 +03:00
|
|
|
DesktopName() []byte
|
|
|
|
SetDesktopName([]byte)
|
2017-06-12 14:11:23 +03:00
|
|
|
Flush() error
|
2017-06-29 00:09:31 +03:00
|
|
|
Wait()
|
2017-06-13 01:52:07 +03:00
|
|
|
SetProtoVersion(string)
|
2017-06-12 14:11:23 +03:00
|
|
|
}
|