socket: Start overhaul of sockets and writing

This commit is contained in:
Daniel Oaks
2017-03-13 23:53:21 +10:00
parent 73d406ccd6
commit de4db1c6ef
2 changed files with 59 additions and 12 deletions
+1
View File
@@ -75,6 +75,7 @@ type Client struct {
func NewClient(server *Server, conn net.Conn, isTLS bool) *Client {
now := time.Now()
socket := NewSocket(conn)
go socket.RunSocketWriter()
client := &Client{
atime: now,
authorized: server.password == nil,