29 using System.Collections.Generic;
31 using System.Net.Sockets;
33 using OpenMetaverse.Packets;
34 using OpenSim.Framework;
35 using OpenSim.Region.ClientStack.LindenUDP;
37 namespace OpenSim.Tests.Common
44 public List<Packet> PacketsSent {
get;
private set; }
47 : base(listenIP, ref port, proxyPortOffsetParm, allow_alternate_port, configSource, circuitManager)
49 PacketsSent =
new List<Packet>();
60 PacketsSent.Add(packet);
65 m_resendUnacked = resendUnacked;
66 m_sendAcks = sendAcks;
67 m_sendPing = sendPing;
69 ClientOutgoingPacketHandler(client);
override void SendPacket(LLUDPClient udpClient, Packet packet, ThrottleOutPacketType category, bool allowSplitting, UnackedPacketMethod method)
Start the process of sending a packet to the client.
bool BeginReceiveException
Tracks state for a client UDP connection and provides client-specific methods
TestLLUDPServer(IPAddress listenIP, ref uint port, int proxyPortOffsetParm, bool allow_alternate_port, IConfigSource configSource, AgentCircuitManager circuitManager)
This class enables regression testing of the LLUDPServer by allowing us to intercept outgoing data...
The LLUDP server for a region. This handles incoming and outgoing packets for all UDP connections to ...
ChunkSenderTuple(byte[] data, EndPoint sender)
void ClientOutgoingPacketHandler(IClientAPI client, bool resendUnacked, bool sendAcks, bool sendPing)
ChunkSenderTuple(EndPoint sender)
override void SendAckImmediate(IPEndPoint remoteEndpoint, PacketAckPacket ack)
delegate void UnackedPacketMethod(OutgoingPacket oPacket)
Record the data and sender tuple