minor fixes

* fix #4
* fix examples
* update go module

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2018-12-18 00:31:40 +03:00
parent 1dfe199fe9
commit b1cfa9ee45
5 changed files with 18 additions and 21 deletions

View File

@@ -9,7 +9,7 @@ import (
"net"
"time"
vnc "github.com/sdstack/go-rfb"
vnc "github.com/unistack-org/go-rfb"
)
func main() {
@@ -26,18 +26,15 @@ func main() {
defer tick.Stop()
cfg := &vnc.ServerConfig{
Width: 800,
Height: 600,
VersionHandler: vnc.ServerVersionHandler,
SecurityHandler: vnc.ServerSecurityHandler,
SecurityHandlers: []vnc.SecurityHandler{&vnc.ClientAuthNone{}},
ClientInitHandler: vnc.ServerClientInitHandler,
ServerInitHandler: vnc.ServerServerInitHandler,
Encodings: []vnc.Encoding{&vnc.RawEncoding{}},
PixelFormat: vnc.PixelFormat32bit,
ClientMessageCh: chServer,
ServerMessageCh: chClient,
ClientMessages: vnc.DefaultClientMessages,
Width: 800,
Height: 600,
Handlers: vnc.DefaultServerHandlers,
SecurityHandlers: []vnc.SecurityHandler{&vnc.ClientAuthNone{}},
Encodings: []vnc.Encoding{&vnc.RawEncoding{}},
PixelFormat: vnc.PixelFormat32bit,
ClientMessageCh: chServer,
ServerMessageCh: chClient,
Messages: vnc.DefaultClientMessages,
}
go vnc.Serve(context.Background(), ln, cfg)