示例#1
0
文件: client.go 项目: vchimishuk/chub
func newClient(conn net.Conn, notif chan *player.NotifMsg) *Client {
	return &Client{
		conn:  cnet.NewTextConn(conn),
		notif: notif,
		close: make(chan struct{}, 1),
	}
}
示例#2
0
func newClientConn(conn net.Conn) *ClientConn {
	return &ClientConn{TextConn: cnet.NewTextConn(conn)}
}