Click or drag to resize

NetConnection Class

Represents a connection to a remote peer
Inheritance Hierarchy
SystemObject
  Internal.Lidgren.NetworkNetConnection

Namespace:  Internal.Lidgren.Network
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public class NetConnection

The NetConnection type exposes the following members.

Properties
  NameDescription
Public propertyAverageRoundtripTime
Gets the current average roundtrip time in seconds
Public propertyCurrentMTU
Gets the current MTU in bytes. If PeerConfiguration.AutoExpandMTU is false, this will be PeerConfiguration.MaximumTransmissionUnit.
Public propertyLocalHailMessage
Gets the local hail message that was sent as part of the handshake
Public propertyPeer
Gets the peer which holds this connection
Public propertyRemoteEndPoint
Gets the remote endpoint for the connection
Public propertyRemoteHailMessage
The message that the remote part specified via Connect() or Approve() - can be null.
Public propertyRemoteTimeOffset
Time offset between this peer and the remote peer
Public propertyRemoteUniqueIdentifier
Gets the unique identifier of the remote NetPeer for this connection
Public propertyStatistics
Gets various statistics for this connection
Public propertyStatus
Gets the current status of the connection (synced to the last status message read)
Public propertyTag
Gets or sets the application defined object containing data about the connection
Top
Methods
  NameDescription
Public methodApprove
Approves this connection; sending a connection response to the remote host
Public methodApprove(NetOutgoingMessage)
Approves this connection; sending a connection response to the remote host
Public methodCanSendImmediately
Public methodDeny
Denies this connection; disconnecting it
Public methodDeny(String)
Denies this connection; disconnecting it
Public methodDisconnect
Disconnect from the remote peer
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLocalTime
Gets local time value comparable to NetTime.Now from a remote value
Public methodGetRemoteTime
Gets the remote time value for a local time value produced by NetTime.Now
Public methodGetSendQueueInfo
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
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSendMessage
Send a message to this remote connection
Public methodToString
Returns a string that represents this object
(Overrides ObjectToString.)
Top
Fields
  NameDescription
Public fieldStatisticsCalculation
Top
Extension Methods
See Also