Esempio n. 1
0
//从clientQueue中读取*net.Conn数据
func (this *ClientHandler) ClientQueuePop() *net.Conn {
	conn := <-this.clientQueue
	statistics.GetClientQueueCount().Dec()
	return conn
}
Esempio n. 2
0
//向clientQueue中写入*net.Conn数据
func (this *ClientHandler) ClientQueuePush(conn *net.Conn) {
	this.clientQueue <- conn
	statistics.GetClientQueueCount().Add()
}