Added server for web sockets, plus some refactoring

This commit is contained in:
amit bezalel
2017-07-01 23:01:58 +03:00
parent 66c322c164
commit 076d8bb4cf
28 changed files with 1774 additions and 1716 deletions

View File

@@ -1,9 +1,6 @@
package common
import (
"io"
"net"
)
import "io"
type ClientMessageType uint8
@@ -31,8 +28,8 @@ type Color struct {
type ColorMap [256]Color
type Conn interface {
io.ReadWriteCloser
Conn() net.Conn
io.ReadWriter
Conn() io.ReadWriter
Protocol() string
PixelFormat() *PixelFormat
SetPixelFormat(*PixelFormat) error
@@ -46,7 +43,7 @@ type Conn interface {
SetHeight(uint16)
DesktopName() string
SetDesktopName(string)
Flush() error
//Flush() error
SetProtoVersion(string)
}