Method | Description | |
---|---|---|
AsyncReceiveFrom ( Queue |
||
Dispose ( ) : void |
Dispose per the IDisposable pattern
|
|
Receive ( BufferChunk packetBuffer ) : void |
Receive a packet into a BufferChunk. This method is preferred over receiving into a byte[] because you can allocate a large byte[] in one BufferChunk and continously receive into the buffer without recreating byte[]s and dealing with the memory allocation overhead that causes. The number of bytes received is stored in BufferChunk.Length.
|
|
ReceiveFrom ( BufferChunk packetBuffer, |
Same as Receive, but you also get an EndPoint containing the sender of the packet.
|
|
UdpReceiver ( |
Constructor that binds this object instance to an IPEndPoint. If you need to change IPEndPoint dynamically, Dispose and recreate a new object.
|
Method | Description | |
---|---|---|
asyncReceiveCallback ( IAsyncResult ar ) : void |
public AsyncReceiveFrom ( Queue |
||
queueOfBufferChunks | Queue |
|
callback | ReceivedFromCallback | |
return | void |
public Receive ( BufferChunk packetBuffer ) : void | ||
packetBuffer | BufferChunk | BufferChunk |
return | void |
public ReceiveFrom ( BufferChunk packetBuffer, |
||
packetBuffer | BufferChunk | BufferChunk |
endPoint | EndPoint | |
return | void |
public UdpReceiver ( |
||
endPoint | IPEndPoint where we should be listening for IP Multicast packets. | |
timeoutMilliseconds | int | |
return | System |