mirror of
https://github.com/amitbet/vncproxy.git
synced 2025-04-27 10:50:47 +00:00
31 lines
617 B
Go
31 lines
617 B
Go
package common
|
|
|
|
import "io"
|
|
|
|
type IServerConn interface {
|
|
io.ReadWriter
|
|
//IServerConn() io.ReadWriter
|
|
Protocol() string
|
|
CurrentPixelFormat() *PixelFormat
|
|
SetPixelFormat(*PixelFormat) error
|
|
//ColorMap() *ColorMap
|
|
SetColorMap(*ColorMap)
|
|
Encodings() []IEncoding
|
|
SetEncodings([]EncodingType) error
|
|
Width() uint16
|
|
Height() uint16
|
|
SetWidth(uint16)
|
|
SetHeight(uint16)
|
|
DesktopName() string
|
|
SetDesktopName(string)
|
|
//Flush() error
|
|
SetProtoVersion(string)
|
|
// Write([]byte) (int, error)
|
|
}
|
|
|
|
type IClientConn interface {
|
|
CurrentPixelFormat() *PixelFormat
|
|
//CurrentColorMap() *ColorMap
|
|
Encodings() []IEncoding
|
|
}
|