NetConnection Class |
Namespace: Internal.Lidgren.Network
public class NetConnection
The NetConnection type exposes the following members.
Name | Description | |
---|---|---|
AverageRoundtripTime |
Gets the current average roundtrip time in seconds
| |
CurrentMTU |
Gets the current MTU in bytes. If PeerConfiguration.AutoExpandMTU is false, this will be PeerConfiguration.MaximumTransmissionUnit.
| |
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
|
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
| |
CanSendImmediately | ||
Deny |
Denies this connection; disconnecting it
| |
Deny(String) |
Denies this connection; disconnecting it
| |
Disconnect |
Disconnect from the remote peer
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (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 ObjectToString.) |
Name | Description | |
---|---|---|
StatisticsCalculation |
Name | Description | |
---|---|---|
MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx.) | |
PropertyGet(String, Object, Boolean) | Overloaded.
Gets the value of the object property by name.
(Defined by ObjectEx.) | |
PropertyGetT(String, Object, Boolean) | Overloaded.
Gets the value of the object property by name.
(Defined by ObjectEx.) | |
PropertySet |
Sets the value of the object property by name.
(Defined by ObjectEx.) |