NetPeer Properties |
The NetPeer type exposes the following members.
Name | Description | |
---|---|---|
Configuration |
Gets the configuration used to instanciate this NetPeer
| |
Connections |
Gets a copy of the list of connections
| |
ConnectionsCount |
Gets the number of active connections
| |
MessageReceivedEvent |
Signalling event which can be waited on to determine when a message is queued for reading.
Note that there is no guarantee that after the event is signaled the blocked thread will
find the message in the queue. Other user created threads could be preempted and dequeue
the message before the waiting thread wakes up.
| |
Port |
Gets the port number this NetPeer is listening and sending on, if Start() has been called
| |
Socket |
Gets the socket, if Start() has been called
| |
Statistics |
Statistics on this NetPeer since it was initialized
| |
Status |
Gets the NetPeerStatus of the NetPeer
| |
Tag |
Gets or sets the application defined object containing data about the peer
| |
UniqueIdentifier |
Gets a unique identifier for this NetPeer based on Mac address and ip/port. Note! Not available until Start() has been called!
| |
UPnP |
Returns an UPnP object if enabled in the NetPeerConfiguration
|