mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
* Clarified what FireQueueEmpty is doing with a MIN_CALLBACK_MS constant and upped it to 30ms
* Removed the unused PacketSent() function * Switched UnackedPacketCollection from a SortedDictionary to a Dictionary now that the sorting is no longer needed. Big performance improvement for ResendUnacked()
This commit is contained in:
@@ -45,13 +45,6 @@ namespace OpenMetaverse
|
||||
/// </summary>
|
||||
/// <param name="buffer">Incoming packet buffer</param>
|
||||
protected abstract void PacketReceived(UDPPacketBuffer buffer);
|
||||
|
||||
/// <summary>
|
||||
/// This method is called when an outgoing packet is sent
|
||||
/// </summary>
|
||||
/// <param name="buffer">Outgoing packet buffer</param>
|
||||
/// <param name="bytesSent">Number of bytes written to the wire</param>
|
||||
protected abstract void PacketSent(UDPPacketBuffer buffer, int bytesSent);
|
||||
|
||||
/// <summary>UDP port to bind to in server mode</summary>
|
||||
protected int m_udpPort;
|
||||
@@ -279,8 +272,6 @@ namespace OpenMetaverse
|
||||
{
|
||||
UDPPacketBuffer buf = (UDPPacketBuffer)result.AsyncState;
|
||||
int bytesSent = m_udpSocket.EndSendTo(result);
|
||||
|
||||
PacketSent(buf, bytesSent);
|
||||
}
|
||||
catch (SocketException) { }
|
||||
catch (ObjectDisposedException) { }
|
||||
|
||||
Reference in New Issue
Block a user