Lidgren Network Library documentation |
NetConnection Members |
NetConnection Class Methods Properties See Also Send Feedback |
The NetConnection type exposes the following members.
Methods
Name | Description | |
---|---|---|
Approve()()()() |
Approves this connection; sending a connection response to the remote host
| |
Approve(NetOutgoingMessage) |
Approves this connection; sending a connection response to the remote host
| |
Deny()()()() |
Denies this connection; disconnecting it
| |
Deny(String) |
Denies this connection; disconnecting it
| |
Disconnect |
Disconnect from the remote peer
| |
Equals | (Inherited from Object.) | |
Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetLocalTime |
Gets local time value comparable to NetTime.Now from a remote value
| |
GetRemoteTime |
Gets the remote time value for a local time value produced by NetTime.Now
| |
GetSendQueueInfo |
Zero windowSize indicates that the channel is not yet instantiated (used)
Negative freeWindowSlots means this amount of messages are currently queued but delayed due to closed window
| |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
SendMessage |
Send a message to this remote connection
| |
ToString |
Returns a string that represents this object
(Overrides Object..::..ToString()()()().) |
Properties
Name | Description | |
---|---|---|
AverageRoundtripTime |
Gets the current average roundtrip time in seconds
| |
LocalHailMessage |
Gets the local hail message that was sent as part of the handshake
| |
Peer |
Gets the peer which holds this connection
| |
RemoteEndpoint |
Gets the remote endpoint for the connection
| |
RemoteHailMessage |
The message that the remote part specified via Connect() or Approve() - can be null.
| |
RemoteTimeOffset |
Time offset between this peer and the remote peer
| |
RemoteUniqueIdentifier |
Gets the unique identifier of the remote NetPeer for this connection
| |
Statistics |
Gets various statistics for this connection
| |
Status |
Gets the current status of the connection (synced to the last status message read)
| |
Tag |
Gets or sets the application defined object containing data about the connection
|