Base UDP server
More...
Base UDP server
Definition at line 41 of file OpenSimUDPBase.cs.
OpenMetaverse.OpenSimUDPBase.OpenSimUDPBase |
( |
IPAddress |
bindAddress, |
|
|
int |
port |
|
) |
| |
|
inline |
Default constructor
- Parameters
-
bindAddress | Local IP address to bind the server to |
port | Port to listening for incoming UDP packets on |
///
- Parameters
-
usePool | Are we to use an object pool to get objects for handing inbound data? |
Definition at line 172 of file OpenSimUDPBase.cs.
void OpenMetaverse.OpenSimUDPBase.AsyncBeginSend |
( |
UDPPacketBuffer |
buf | ) |
|
|
inline |
virtual bool OpenMetaverse.OpenSimUDPBase.DisablePools |
( |
| ) |
|
|
inlinevirtual |
virtual bool OpenMetaverse.OpenSimUDPBase.EnablePools |
( |
| ) |
|
|
inlinevirtual |
abstract void OpenMetaverse.OpenSimUDPBase.PacketReceived |
( |
UDPPacketBuffer |
buffer | ) |
|
|
pure virtual |
virtual void OpenMetaverse.OpenSimUDPBase.StartInbound |
( |
int |
recvBufferSize, |
|
|
bool |
asyncPacketHandling |
|
) |
| |
|
inlinevirtual |
Start inbound UDP packet handling.
- Parameters
-
recvBufferSize | The size of the receive buffer for the UDP socket. This value is passed up to the operating system and used in the system networking stack. Use zero to leave this value as the default |
asyncPacketHandling | Set this to true to start receiving more packets while current packet handler callbacks are still running. Setting this to false will complete each packet callback before the next packet is processed |
This method will attempt to set the SIO_UDP_CONNRESET flag on the socket to get newer versions of Windows to behave in a sane manner (not throwing an exception when the remote side resets the connection). This call is ignored on Mono where the flag is not necessary
Definition at line 198 of file OpenSimUDPBase.cs.
virtual void OpenMetaverse.OpenSimUDPBase.StartOutbound |
( |
| ) |
|
|
inlinevirtual |
virtual void OpenMetaverse.OpenSimUDPBase.StopInbound |
( |
| ) |
|
|
inlinevirtual |
virtual void OpenMetaverse.OpenSimUDPBase.StopOutbound |
( |
| ) |
|
|
inlinevirtual |
IPAddress OpenMetaverse.OpenSimUDPBase.m_localBindAddress |
|
protected |
int OpenMetaverse.OpenSimUDPBase.m_udpPort |
|
protected |
float OpenMetaverse.OpenSimUDPBase.AverageReceiveTicksForLastSamplePeriod |
|
getset |
The average time taken for each require receive in the last sample.
Definition at line 108 of file OpenSimUDPBase.cs.
bool OpenMetaverse.OpenSimUDPBase.IsRunningInbound |
|
getset |
Returns true if the server is currently listening for inbound packets, otherwise false
Definition at line 74 of file OpenSimUDPBase.cs.
bool OpenMetaverse.OpenSimUDPBase.IsRunningOutbound |
|
getset |
Returns true if the server is currently sending outbound packets, otherwise false
If IsRunningOut = false, then any request to send a packet is simply dropped.
Definition at line 78 of file OpenSimUDPBase.cs.
OpenSim.Framework.Pool<UDPPacketBuffer> OpenMetaverse.OpenSimUDPBase.Pool |
|
getsetprotected |
Pool to use for handling data. May be null if UsePools = false;
Definition at line 71 of file OpenSimUDPBase.cs.
int OpenMetaverse.OpenSimUDPBase.UdpReceives |
|
getset |
int OpenMetaverse.OpenSimUDPBase.UdpSends |
|
getset |
bool OpenMetaverse.OpenSimUDPBase.UsePools |
|
getset |
Are we to use object pool(s) to reduce memory churn when receiving data?
Definition at line 66 of file OpenSimUDPBase.cs.
The documentation for this class was generated from the following file: