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.
Mostrar archivo Open project: devluz/webrtcnetwork Class Usage Examples

Public Methods

Method Description
ToString ( ) : string

Converts the event to string. Use for debugging only.

Private Methods

Method 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 method

Converts the event to string. Use for debugging only.
public ToString ( ) : string
return string