Ejemplo n.º 1
0
        /// <summary>
        /// 服务器主动发送消息给特定的sessionid客户端
        /// </summary>
        /// <param name="response"></param>
        /// <param name="request"></param>
        /// <param name="sessiongId"></param>
        public void Send(IResponseHandlerResult response, CurrentRequest request, ulong sessiongId = 0)
        {
            var bytes = this.Protocol.FromResponse(request, response);

            this.Socket.Push(sessiongId, bytes);
        }