Méthode | Description | |
---|---|---|
Initialize ( ) : bool |
Initializes the NetworkDiscovery component.
|
|
OnReceivedBroadcast ( string fromAddress, string data ) : void |
This is a virtual function that can be implemented to handle broadcast messages when running as a client.
|
|
StartAsClient ( ) : bool |
Starts listening for broadcasts messages.
|
|
StartAsServer ( ) : bool |
Starts sending broadcast messages.
|
|
StopBroadcast ( ) : void |
Stops listening and broadcasting.
|
Méthode | Description | |
---|---|---|
BytesToString ( byte bytes ) : string | ||
OnDestroy ( ) : void | ||
OnGUI ( ) : void | ||
StringToBytes ( string str ) : byte[] | ||
Update ( ) : void |
public OnReceivedBroadcast ( string fromAddress, string data ) : void | ||
fromAddress | string | The IP address of the server. |
data | string | The data broadcast by the server. |
Résultat | void |