Documentation ¶
Index ¶
Constants ¶
View Source
const ( Unknown = 0 Connecting = 1 Connected = 2 Disconnected = 3 )
Variables ¶
This section is empty.
Functions ¶
func CloseClient ¶ added in v0.4.0
func CloseClient(client *Client)
Types ¶
type Client ¶
type Client struct { Id string SessionId string Conn net.Conn LastPingTime time.Time ConnectedTime time.Time CleanSession bool Keepalive uint16 // contains filtered or unexported fields }
func FindClientsBySessionIds ¶ added in v0.4.0
func NewClient ¶
func NewClient(cp *packets.ConnectPacket, conn net.Conn, authentication *security.Authentication, serverConfig *config.ServerConfig) (*Client, bool)
func (*Client) IsConnected ¶
Click to show internal directories.
Click to hide internal directories.