C# Class Luz.ULib.Net.NetworkEvent

Contains information about events received by the network. The type of the network event decides the content it can contain. Most important are: UnreliableMessageReceived / ReliableMessageReceived: A new message was received. The property MessageData will return a buffer + byte array containing the data received. ServerInitialized: A call to StartServer was successful. The Info property will return the address the server can be accessed by.
Afficher le fichier Open project: devluz/webrtcnetwork Class Usage Examples

Méthodes publiques

Méthode Description
ToString ( ) : string

Converts the event to string. Use for debugging only.

Private Methods

Méthode Description
NetworkEvent ( NetEventType t ) : System

Creates a new network event of a certain type setting connection id to invalid and data to null. Internal only. Do not use.

NetworkEvent ( NetEventType t, ConnectionId conId, object dt ) : System

Creates a network event with the given content Internal only. Do not use.

Method Details

ToString() public méthode

Converts the event to string. Use for debugging only.
public ToString ( ) : string
Résultat string