Метод | Описание | |
---|---|---|
Close ( ) : void |
Close the socket currently listening, and destroy the UDP sender device.
|
|
IsOpen ( ) : bool |
Query the open state of the UDP socket.
|
|
OnDisable ( ) : void | ||
Open ( ) : bool |
Open a UDP socket and create a UDP sender.
|
|
ReceivePacket ( byte buffer ) : int |
Receive a packet of bytes over UDP.
|
|
SendPacket ( byte packet, int length ) : void |
Send a packet of bytes out via UDP.
|
|
init ( string hostIP, int remotePort, int localPort ) : void |
Метод | Описание | |
---|---|---|
Start ( ) : void |
public ReceivePacket ( byte buffer ) : int | ||
buffer | byte | The buffer to be read into. |
Результат | int |
public SendPacket ( byte packet, int length ) : void | ||
packet | byte | The packet of bytes to be sent. |
length | int | The length of the packet of bytes to be sent. |
Результат | void |
public init ( string hostIP, int remotePort, int localPort ) : void | ||
hostIP | string | |
remotePort | int | |
localPort | int | |
Результат | void |