ConnectionInfo MembersNetworkComms.Net Help
The ConnectionInfo type exposes the following members.
Constructors

  NameDescription
Public methodConnectionInfo(EndPoint)
Create a new ConnectionInfo object pointing at the provided remote OnlineIPEndPoint. Uses the custom NetworkComms.Net application layer protocol.
Public methodConnectionInfo(EndPoint, ApplicationLayerProtocolStatus)
Create a new ConnectionInfo object pointing at the provided remote OnlineIPEndPoint
Public methodConnectionInfo(String, Int32)
Create a new ConnectionInfo object pointing at the provided remote ipAddress and port. Provided ipAddress and port are parsed in to RemoteEndPoint. Uses the custom NetworkComms.Net application layer protocol.
Public methodConnectionInfo(String, Int32, ApplicationLayerProtocolStatus)
Create a new ConnectionInfo object pointing at the provided remote ipAddress and port. Provided ipAddress and port are parsed in to RemoteEndPoint.
Public methodConnectionInfo(ConnectionType, ShortGuid, EndPoint, Boolean)
Create a connectionInfo object which can be used to inform a remote peer of local connectivity. Uses the custom NetworkComms.Net application layer protocol.
Public methodConnectionInfo(ConnectionType, ShortGuid, EndPoint, Boolean, ApplicationLayerProtocolStatus)
Create a connectionInfo object which can be used to inform a remote peer of local connectivity
Back to Top
Methods

  NameDescription
Public methodDeserialize(Stream)
Deserializes from a OnlineStream to the current IExplicitlySerialize object
Public methodStatic memberDeserialize(MemoryStream, ConnectionInfo )
Deserializes from a memory stream to a ConnectionInfo object
Public methodEquals(Object)
Compares this ConnectionInfo object with obj and returns true if obj is ConnectionInfo and both the NetworkIdentifier and RemoteEndPoint match.
(Overrides OnlineObject Equals(Object).)
Public methodEquals(ConnectionInfo)
Compares this ConnectionInfo object with other and returns true if both the NetworkIdentifier and RemoteEndPoint match.
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodGetHashCode
Returns NetworkIdentifier.GetHashCode() ^ RemoteEndPoint.GetHashCode();
(Overrides OnlineObject GetHashCode .)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodResetNetworkIdentifer
Replaces the current networkIdentifier with that provided
Public methodSerialize
Serializes the current IExplicitlySerialize object to the provided OnlineStream
Public methodToString
Returns a string containing suitable information about this connection
(Overrides OnlineObject ToString .)
Back to Top
Operators

  NameDescription
Public operatorStatic memberEquality
Returns left.Equals(right)
Public operatorStatic memberInequality
Returns !left.Equals(right)
Back to Top
Properties

  NameDescription
Public propertyApplicationLayerProtocol
If enabled NetworkComms.Net uses a custom application layer protocol to provide useful features such as inline serialisation, transparent packet transmission, remote peer information etc. Default: ApplicationLayerProtocolStatus.Enabled
Public propertyConnectionCreationTime
The DateTime corresponding to the creation time of this connection object
Public propertyConnectionEstablishedTime
The DateTime corresponding to the creation time of this connection object
Public propertyConnectionListener
If this connection is ServerSide references the listener that was used.
Public propertyConnectionState
Describes the current state of the connection
Public propertyConnectionType
The type of this connection
Public propertyIsConnectable
True if the RemoteEndPoint is connectable.
Public propertyLastTrafficTime
The DateTime corresponding to the time data was sent or received
Public propertyLocalEndPoint
The OnlineEndPoint corresponding to the local end of this connection.
Public propertyNetworkIdentifier
Returns the networkIdentifier of this peer as a ShortGuid. If the NetworkIdentifier has not yet been set returns ShortGuid.Empty.
Public propertyRemoteEndPoint
The OnlineEndPoint corresponding to the local end of this connection.
Public propertyServerSide
True if connection was originally established by remote
Back to Top
See Also