added serverInit listening and recorder adaptation for being created outside of the client

This commit is contained in:
amit bezalel
2017-07-07 13:32:21 +03:00
parent ed0dc6839c
commit 7882e7f051
12 changed files with 840 additions and 892 deletions

View File

@@ -3,6 +3,7 @@ package server
import (
"encoding/binary"
"fmt"
"vncproxy/common"
"io"
)
@@ -126,7 +127,7 @@ func ServerSecurityHandler(cfg *ServerConfig, c *ServerConn) error {
}
func ServerServerInitHandler(cfg *ServerConfig, c *ServerConn) error {
srvInit := &ServerInit{
srvInit := &common.ServerInit{
FBWidth: c.Width(),
FBHeight: c.Height(),
PixelFormat: *c.PixelFormat(),