NetClient Properties

Lidgren.Network

Collapse imageExpand ImageCopy imageCopyHover image

The NetClient type exposes the following members.

Properties

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

See Also