NetConnection Members

Lidgren.Network

Collapse imageExpand ImageCopy imageCopyHover image

The NetConnection type exposes the following members.

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 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 attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(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 Object..::..ToString()()()().)

Properties

  NameDescription
Public propertyAverageRoundtripTime
Gets the current average roundtrip time in seconds
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

See Also