OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Properties | List of all members
OpenSim.Tests.Common.TestLLUDPServer Class Reference

This class enables regression testing of the LLUDPServer by allowing us to intercept outgoing data. More...

Inheritance diagram for OpenSim.Tests.Common.TestLLUDPServer:
Inheritance graph
[legend]
Collaboration diagram for OpenSim.Tests.Common.TestLLUDPServer:
Collaboration graph
[legend]

Public Member Functions

 TestLLUDPServer (IPAddress listenIP, ref uint port, int proxyPortOffsetParm, bool allow_alternate_port, IConfigSource configSource, AgentCircuitManager circuitManager)
 
override void SendAckImmediate (IPEndPoint remoteEndpoint, PacketAckPacket ack)
 
override void SendPacket (LLUDPClient udpClient, Packet packet, ThrottleOutPacketType category, bool allowSplitting, UnackedPacketMethod method)
 Start the process of sending a packet to the client. More...
 
void ClientOutgoingPacketHandler (IClientAPI client, bool resendUnacked, bool sendAcks, bool sendPing)
 
- Public Member Functions inherited from OpenSim.Region.ClientStack.LindenUDP.LLUDPServer
 LLUDPServer (IPAddress listenIP, ref uint port, int proxyPortOffsetParm, bool allow_alternate_port, IConfigSource configSource, AgentCircuitManager circuitManager)
 
void Start ()
 
void StartInbound ()
 
override void StartOutbound ()
 Start outbound UDP packet handling. More...
 
void Stop ()
 
override bool EnablePools ()
 
override bool DisablePools ()
 
void AddScene (IScene scene)
 
bool HandlesRegion (Location x)
 
int GetTotalQueuedOutgoingPackets ()
 
bool SendPacketData (LLUDPClient udpClient, byte[] data, PacketType type, ThrottleOutPacketType category, UnackedPacketMethod method)
 Start the process of sending a packet to the client. More...
 
void SendAcks (LLUDPClient udpClient)
 
void SendPing (LLUDPClient udpClient)
 
void CompletePing (LLUDPClient udpClient, byte pingID)
 
void HandleUnacked (LLClientView client)
 
void ResendUnacked (OutgoingPacket outgoingPacket)
 
void Flush (LLUDPClient udpClient)
 
override void PacketReceived (UDPPacketBuffer buffer)
 This method is called when an incoming packet is received More...
 
- Public Member Functions inherited from OpenMetaverse.OpenSimUDPBase
 OpenSimUDPBase (IPAddress bindAddress, int port)
 Default constructor More...
 
virtual void StartInbound (int recvBufferSize, bool asyncPacketHandling)
 Start inbound UDP packet handling. More...
 
virtual void StopInbound ()
 
virtual void StopOutbound ()
 
void AsyncBeginSend (UDPPacketBuffer buf)
 

Properties

List< Packet > PacketsSent [get, set]
 
- Properties inherited from OpenSim.Region.ClientStack.LindenUDP.LLUDPServer
int ClientLogoutsDueToNoReceives [get, set]
 Number of forced client logouts due to no receipt of packets before timeout. More...
 
int DefaultClientPacketDebugLevel [get, set]
 Default packet debug level given to new clients More...
 
bool DiscardInboundAgentUpdates [get, set]
 If set then all inbound agent updates are discarded. For debugging purposes. discard agent update. More...
 
TokenBucket Throttle [get, set]
 Bandwidth throttle for this UDP server More...
 
ThrottleRates ThrottleRates [get, set]
 Per client throttle rates enforced by this server More...
 
Scene Scene [get, set]
 Reference to the scene this UDP server is attached to More...
 
int NextAnimationSequenceNumber [get]
 
Socket Server [get]
 
int IncomingMalformedPacketCount [get, set]
 Record how many inbound packets could not be recognized as LLUDP packets. More...
 
int IncomingOrphanedPacketCount [get, set]
 Record how many inbound packets could not be associated with a simulator circuit. More...
 
JobEngine IpahEngine [get, set]
 Queue some low priority but potentially high volume async requests so that they don't overwhelm available threadpool threads. More...
 
JobEngine OqrEngine [get, set]
 Run queue empty processing within a single persistent thread. More...
 
static long AggregatedLLUDPBytesIn [get]
 
static long AggregatedLLUDPBytesOut [get]
 
long IncomingPacketsProcessed [get, set]
 Number of inbound packets processed since startup. More...
 
- Properties inherited from OpenMetaverse.OpenSimUDPBase
bool UsePools [get, set]
 Are we to use object pool(s) to reduce memory churn when receiving data? More...
 
OpenSim.Framework.Pool
< UDPPacketBuffer > 
Pool [get, set]
 Pool to use for handling data. May be null if UsePools = false; More...
 
bool IsRunningInbound [get, set]
 Returns true if the server is currently listening for inbound packets, otherwise false More...
 
bool IsRunningOutbound [get, set]
 Returns true if the server is currently sending outbound packets, otherwise false More...
 
int UdpReceives [get, set]
 Number of UDP receives. More...
 
int UdpSends [get, set]
 Number of UDP sends More...
 
float AverageReceiveTicksForLastSamplePeriod [get, set]
 The average time taken for each require receive in the last sample. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from OpenSim.Region.ClientStack.LindenUDP.LLUDPServer
static void LogPacketHeader (bool incoming, uint circuit, byte flags, PacketType packetType, ushort size)
 
- Public Attributes inherited from OpenSim.Region.ClientStack.LindenUDP.LLUDPServer
const int MTU = 1400
 Maximum transmission unit, or UDP packet size, for the LLUDP protocol More...
 
readonly float TickCountResolution
 The measured resolution of Environment.TickCount More...
 
readonly int PrimUpdatesPerCallback
 Number of prim updates to put on the queue each time the OnQueueEmpty event is triggered for updates More...
 
readonly int TextureSendLimit
 Number of texture packets to put on the queue each time the OnQueueEmpty event is triggered for textures More...
 
- Static Public Attributes inherited from OpenSim.Region.ClientStack.LindenUDP.LLUDPServer
static PacketLogger PacketLog
 
- Protected Member Functions inherited from OpenSim.Region.ClientStack.LindenUDP.LLUDPServer
virtual IClientAPI AddClient (uint circuitCode, UUID agentID, UUID sessionID, IPEndPoint remoteEndPoint, AuthenticateResponse sessionInfo)
 Add a client. More...
 
void ClientOutgoingPacketHandler (IClientAPI client)
 
void LogoutHandler (IClientAPI client)
 
- Protected Attributes inherited from OpenSim.Region.ClientStack.LindenUDP.LLUDPServer
bool m_resendUnacked
 Flag to signal when clients should check for resends More...
 
bool m_sendAcks
 Flag to signal when clients should send ACKs More...
 
bool m_sendPing
 Flag to signal when clients should send pings More...
 
- Protected Attributes inherited from OpenMetaverse.OpenSimUDPBase
int m_udpPort
 UDP port to bind to in server mode More...
 
IPAddress m_localBindAddress
 Local IP address to bind to in server mode More...
 
- Static Protected Attributes inherited from OpenSim.Region.ClientStack.LindenUDP.LLUDPServer
static bool m_shouldCollectStats = false
 

Detailed Description

This class enables regression testing of the LLUDPServer by allowing us to intercept outgoing data.

Definition at line 42 of file TestLLUDPServer.cs.

Constructor & Destructor Documentation

OpenSim.Tests.Common.TestLLUDPServer.TestLLUDPServer ( IPAddress  listenIP,
ref uint  port,
int  proxyPortOffsetParm,
bool  allow_alternate_port,
IConfigSource  configSource,
AgentCircuitManager  circuitManager 
)
inline

Definition at line 46 of file TestLLUDPServer.cs.

Member Function Documentation

void OpenSim.Tests.Common.TestLLUDPServer.ClientOutgoingPacketHandler ( IClientAPI  client,
bool  resendUnacked,
bool  sendAcks,
bool  sendPing 
)
inline

Definition at line 63 of file TestLLUDPServer.cs.

override void OpenSim.Tests.Common.TestLLUDPServer.SendAckImmediate ( IPEndPoint  remoteEndpoint,
PacketAckPacket  ack 
)
inlinevirtual

Reimplemented from OpenSim.Region.ClientStack.LindenUDP.LLUDPServer.

Definition at line 52 of file TestLLUDPServer.cs.

override void OpenSim.Tests.Common.TestLLUDPServer.SendPacket ( LLUDPClient  udpClient,
Packet  packet,
ThrottleOutPacketType  category,
bool  allowSplitting,
UnackedPacketMethod  method 
)
inlinevirtual

Start the process of sending a packet to the client.

Parameters
udpClient
packet
category
allowSplitting
methodThe method to call if the packet is not acked by the client. If null, then a standard resend of the packet is done.

WRONG use. May be usefull in future revision

Reimplemented from OpenSim.Region.ClientStack.LindenUDP.LLUDPServer.

Definition at line 57 of file TestLLUDPServer.cs.

Property Documentation

List<Packet> OpenSim.Tests.Common.TestLLUDPServer.PacketsSent
getset

Definition at line 44 of file TestLLUDPServer.cs.


The documentation for this class was generated from the following file: