NetPeer Properties

Lidgren.Network

Collapse imageExpand ImageCopy imageCopyHover image

The NetPeer type exposes the following members.

Properties

  NameDescription
Public propertyConfiguration
Gets the configuration used to instanciate this NetPeer
Public propertyConnections
Gets a copy of the list of connections
Public propertyConnectionsCount
Gets the number of active connections
Public propertyMessageReceivedEvent
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.
Public propertyPort
Gets the port number this NetPeer is listening and sending on, if Start() has been called
Public propertySocket
Gets the socket, if Start() has been called
Public propertyStatistics
Statistics on this NetPeer since it was initialized
Public propertyStatus
Gets the NetPeerStatus of the NetPeer
Public propertyTag
Gets or sets the application defined object containing data about the peer
Public propertyUniqueIdentifier
Gets a unique identifier for this NetPeer based on Mac address and ip/port. Note! Not available until Start() has been called!
Public propertyUPnP
Returns an UPnP object if enabled in the NetPeerConfiguration

See Also