mirror of
https://github.com/amitbet/vncproxy.git
synced 2025-09-21 01:20:55 +00:00
general refactoring + fixed setcursorpseudo
This commit is contained in:
30
common/conn-interfaces.go
Normal file
30
common/conn-interfaces.go
Normal file
@@ -0,0 +1,30 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user