/// <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); }
/// <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); }