C# Class OpenSim.Region.ClientStack.LindenUDP.LLUDPServer

The LLUDP server for a region. This handles incoming and outgoing packets for all UDP connections to the region
Inheritance: OpenSimUDPBase
显示文件 Open project: N3X15/VoxelSim Class Usage Examples

Public Properties

Property Type Description
PacketLog PacketLogger
PrimUpdatesPerCallback int
TextureSendLimit int
TickCountResolution float

Protected Properties

Property Type Description
m_scene Scene
m_shouldCollectStats bool
m_throttle OpenSim.Region.ClientStack.LindenUDP.TokenBucket
m_throttleRates ThrottleRates

Public Methods

Method Description
AddScene ( IScene scene ) : void
BroadcastPacket ( Packet packet, ThrottleOutPacketType category, bool sendToPausedAgents, bool allowSplitting ) : void
CompletePing ( LLUDPClient udpClient, byte pingID ) : void
Flush ( LLUDPClient udpClient ) : void
HandlesRegion ( Location x ) : bool
LLUDPServer ( IPAddress listenIP, uint &port, int proxyPortOffsetParm, bool allow_alternate_port, IConfigSource configSource, AgentCircuitManager circuitManager ) : System
LogPacketHeader ( bool incoming, uint circuit, byte flags, PacketType packetType, ushort size ) : void
ResendUnacked ( LLUDPClient udpClient ) : void
SendAcks ( LLUDPClient udpClient ) : void
SendPacket ( LLUDPClient udpClient, Packet packet, ThrottleOutPacketType category, bool allowSplitting ) : void
SendPacketData ( LLUDPClient udpClient, byte data, PacketType type, ThrottleOutPacketType category ) : void
SendPing ( LLUDPClient udpClient ) : void
Start ( ) : void
Stop ( ) : void

Protected Methods

Method Description
AddClient ( uint circuitCode, UUID agentID, UUID sessionID, IPEndPoint remoteEndPoint, AuthenticateResponse sessionInfo ) : void
LogoutHandler ( IClientAPI client ) : void
PacketReceived ( UDPPacketBuffer buffer ) : void

Private Methods

Method Description
AddNewClient ( UseCircuitCodePacket useCircuitCode, IPEndPoint remoteEndPoint ) : void
ClientOutgoingPacketHandler ( IClientAPI client ) : void
HandleUseCircuitCode ( object o ) : void
IncomingPacketHandler ( ) : void
IsClientAuthorized ( UseCircuitCodePacket useCircuitCode, AuthenticateResponse &sessionInfo ) : bool
OutgoingPacketHandler ( ) : void
ProcessInPacket ( object state ) : void
RemoveClient ( LLUDPClient udpClient ) : void
SendAckImmediate ( IPEndPoint remoteEndpoint, uint sequenceNumber ) : void
SendPacketFinal ( OutgoingPacket outgoingPacket ) : void

Actually send a packet to a client.

Method Details

AddClient() protected method

protected AddClient ( uint circuitCode, UUID agentID, UUID sessionID, IPEndPoint remoteEndPoint, AuthenticateResponse sessionInfo ) : void
circuitCode uint
agentID UUID
sessionID UUID
remoteEndPoint System.Net.IPEndPoint
sessionInfo OpenSim.Framework.AuthenticateResponse
return void

AddScene() public method

public AddScene ( IScene scene ) : void
scene IScene
return void

BroadcastPacket() public method

public BroadcastPacket ( Packet packet, ThrottleOutPacketType category, bool sendToPausedAgents, bool allowSplitting ) : void
packet OpenMetaverse.Packets.Packet
category ThrottleOutPacketType
sendToPausedAgents bool
allowSplitting bool
return void

CompletePing() public method

public CompletePing ( LLUDPClient udpClient, byte pingID ) : void
udpClient LLUDPClient
pingID byte
return void

Flush() public method

public Flush ( LLUDPClient udpClient ) : void
udpClient LLUDPClient
return void

HandlesRegion() public method

public HandlesRegion ( Location x ) : bool
x Location
return bool

LLUDPServer() public method

public LLUDPServer ( IPAddress listenIP, uint &port, int proxyPortOffsetParm, bool allow_alternate_port, IConfigSource configSource, AgentCircuitManager circuitManager ) : System
listenIP IPAddress
port uint
proxyPortOffsetParm int
allow_alternate_port bool
configSource IConfigSource
circuitManager AgentCircuitManager
return System

LogPacketHeader() public static method

public static LogPacketHeader ( bool incoming, uint circuit, byte flags, PacketType packetType, ushort size ) : void
incoming bool
circuit uint
flags byte
packetType PacketType
size ushort
return void

LogoutHandler() protected method

protected LogoutHandler ( IClientAPI client ) : void
client IClientAPI
return void

PacketReceived() protected method

protected PacketReceived ( UDPPacketBuffer buffer ) : void
buffer UDPPacketBuffer
return void

ResendUnacked() public method

public ResendUnacked ( LLUDPClient udpClient ) : void
udpClient LLUDPClient
return void

SendAcks() public method

public SendAcks ( LLUDPClient udpClient ) : void
udpClient LLUDPClient
return void

SendPacket() public method

public SendPacket ( LLUDPClient udpClient, Packet packet, ThrottleOutPacketType category, bool allowSplitting ) : void
udpClient LLUDPClient
packet Packet
category ThrottleOutPacketType
allowSplitting bool
return void

SendPacketData() public method

public SendPacketData ( LLUDPClient udpClient, byte data, PacketType type, ThrottleOutPacketType category ) : void
udpClient LLUDPClient
data byte
type PacketType
category ThrottleOutPacketType
return void

SendPing() public method

public SendPing ( LLUDPClient udpClient ) : void
udpClient LLUDPClient
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

Property Details

PacketLog public_oe static_oe property

public static PacketLogger PacketLog
return PacketLogger

PrimUpdatesPerCallback public_oe property

Number of prim updates to put on the queue each time the OnQueueEmpty event is triggered for updates
public int PrimUpdatesPerCallback
return int

TextureSendLimit public_oe property

Number of texture packets to put on the queue each time the OnQueueEmpty event is triggered for textures
public int TextureSendLimit
return int

TickCountResolution public_oe property

The measured resolution of Environment.TickCount
public float TickCountResolution
return float

m_scene protected_oe property

Reference to the scene this UDP server is attached to
protected Scene m_scene
return Scene

m_shouldCollectStats protected_oe static_oe property

protected static bool m_shouldCollectStats
return bool

m_throttle protected_oe property

Bandwidth throttle for this UDP server
protected OpenSim.Region.ClientStack.LindenUDP.TokenBucket m_throttle
return OpenSim.Region.ClientStack.LindenUDP.TokenBucket

m_throttleRates protected_oe property

Bandwidth throttle rates for this UDP server
protected ThrottleRates m_throttleRates
return ThrottleRates