shelldoor/servers/client.go

22 lines
394 B
Go

package servers
import "net"
// The type represents authentication request
// from clients.
type ClientAuthRequest struct {
Login Login
Password Password
}
// The type represents the controlling client.
type Client struct {
conn net.Conn
}
// Returns the new client on the specified connection.
func NewClient(conn net.Conn) *Client {
ret := &Client{}
ret.conn = conn
return ret
}