Свойство | Type | Description | |
---|---|---|---|
m_localBindAddress | |||
m_udpPort | int |
Méthode | Description | |
---|---|---|
Initialize ( |
Default Initialization
|
|
Start ( int recvBufferSize, bool asyncPacketHandling ) : void |
Start the UDP server 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 |
|
Stop ( ) : void |
Stops the UDP server
|
|
SyncSend ( UDPPacketBuffer buf ) : void |
Méthode | Description | |
---|---|---|
PacketReceived ( UDPPacketBuffer buffer ) : void |
This method is called when an incoming packet is received
|
Méthode | Description | |
---|---|---|
AsyncBeginReceive ( ) : void | ||
AsyncEndReceive ( IAsyncResult iar ) : void |
public Initialize ( |
||
bindAddress | Local IP address to bind the server to | |
port | int | Port to listening for incoming UDP packets on |
Résultat | void |
protected abstract PacketReceived ( UDPPacketBuffer buffer ) : void | ||
buffer | UDPPacketBuffer | Incoming packet buffer |
Résultat | void |
public Start ( int recvBufferSize, bool asyncPacketHandling ) : void | ||
recvBufferSize | int | /// 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 | bool | /// 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 /// |
Résultat | void |
public SyncSend ( UDPPacketBuffer buf ) : void | ||
buf | UDPPacketBuffer | |
Résultat | void |
protected IPAddress,System.Net m_localBindAddress | ||
Résultat |