C# Class UDPPacketIO, wekinator_examples

Inheritance: MonoBehaviour
Afficher le fichier Open project: fiebrink1/wekinator_examples Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
Start ( ) : void

Method Details

Close() public méthode

Close the socket currently listening, and destroy the UDP sender device.
public Close ( ) : void
Résultat void

IsOpen() public méthode

Query the open state of the UDP socket.
public IsOpen ( ) : bool
Résultat bool

OnDisable() public méthode

public OnDisable ( ) : void
Résultat void

Open() public méthode

Open a UDP socket and create a UDP sender.
public Open ( ) : bool
Résultat bool

ReceivePacket() public méthode

Receive a packet of bytes over UDP.
public ReceivePacket ( byte buffer ) : int
buffer byte The buffer to be read into.
Résultat int

SendPacket() public méthode

Send a packet of bytes out via UDP.
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.
Résultat void

init() public méthode

public init ( string hostIP, int remotePort, int localPort ) : void
hostIP string
remotePort int
localPort int
Résultat void