示例#1
0
 /// <summary>
 /// 发送请求
 /// </summary>
 /// <param name="Event"></param>
 /// <param name="Param"></param>
 internal static void ExecuteSocketRequest(PacketDecodeCompletedEventArgs Event, SocketMiddleData Param)
 {
     Event.Server.Send(Param.ToJson(), Event.Session);
 }
示例#2
0
        /// <summary>
        /// 执行回调数据
        /// </summary>
        internal static void ExecuteSocketCallBack(List <PacketDecodeCompletedEventArgs> Packets, SocketMiddleData Param)
        {
            var Event = Packets.Where(Item => (Item.Session.Socket.RemoteEndPoint as IPEndPoint).Port == Param.SendPort).FirstOrDefault();

            Event.Server.Send(Param.ToJson(), Event.Session);
        }