C# 클래스 OpenSim.Region.ClientStack.LindenUDP.UnackedPacketCollection

Special collection that is optimized for tracking unacknowledged packets
파일 보기 프로젝트 열기: N3X15/VoxelSim 1 사용 예제들

공개 메소드들

메소드 설명
Add ( OpenSim.Region.ClientStack.LindenUDP.OutgoingPacket packet ) : void

Add an unacked packet to the collection

This does not immediately add the ACK to the collection, it only queues it so it can be added in a thread-safe way later

GetExpiredPackets ( int timeoutMS ) : List

Returns a list of all of the packets with a TickCount older than the specified timeout

This function is not thread safe, and cannot be called multiple times concurrently

Remove ( uint sequenceNumber, int currentTime, bool fromResend ) : void

Marks a packet as acknowledged

This does not immediately acknowledge the packet, it only queues the ack so it can be handled in a thread-safe way later

비공개 메소드들

메소드 설명
ProcessQueues ( ) : void

메소드 상세

Add() 공개 메소드

Add an unacked packet to the collection
This does not immediately add the ACK to the collection, it only queues it so it can be added in a thread-safe way later
public Add ( OpenSim.Region.ClientStack.LindenUDP.OutgoingPacket packet ) : void
packet OpenSim.Region.ClientStack.LindenUDP.OutgoingPacket Packet that is awaiting acknowledgement
리턴 void

GetExpiredPackets() 공개 메소드

Returns a list of all of the packets with a TickCount older than the specified timeout
This function is not thread safe, and cannot be called multiple times concurrently
public GetExpiredPackets ( int timeoutMS ) : List
timeoutMS int Number of ticks (milliseconds) before a /// packet is considered expired
리턴 List

Remove() 공개 메소드

Marks a packet as acknowledged
This does not immediately acknowledge the packet, it only queues the ack so it can be handled in a thread-safe way later
public Remove ( uint sequenceNumber, int currentTime, bool fromResend ) : void
sequenceNumber uint Sequence number of the packet to /// acknowledge
currentTime int Current value of Environment.TickCount
fromResend bool
리턴 void