private void SimplifyServer_ReceiveStringEvent(HslCommunication.Core.Net.AppSession session, HslCommunication.NetHandle handle, string data)
 {
     // 示例情况,接收到数据后返回消息
     simplifyServer.SendMessage(session, handle, "Back:" + data);
 }
 /// <summary>
 /// 接收出错的时候进行处理
 /// </summary>
 /// <param name="session">会话内容</param>
 /// <param name="ex">异常信息</param>
 internal virtual void SocketReceiveException(AppSession session, Exception ex)
 {
 }
 /// <summary>
 /// 当远端的客户端关闭连接时触发
 /// </summary>
 /// <param name="session"></param>
 internal virtual void AppSessionRemoteClose(AppSession session)
 {
 }
 /// <summary>
 /// 数据处理中心,应该继承重写
 /// </summary>
 /// <param name="session">连接状态</param>
 /// <param name="protocol">协议头</param>
 /// <param name="customer">用户自定义</param>
 /// <param name="content">数据内容</param>
 internal virtual void DataProcessingCenter(AppSession session, int protocol, int customer, byte[] content)
 {
 }