The ConnectionInfo type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
ConnectionInfo(EndPoint) |
Create a new ConnectionInfo object pointing at the provided remote IPEndPoint.
Uses the custom NetworkComms.Net application layer protocol.
| |
ConnectionInfo(EndPoint, ApplicationLayerProtocolStatus) |
Create a new ConnectionInfo object pointing at the provided remote IPEndPoint | |
ConnectionInfo(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.
| |
ConnectionInfo(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.
| |
ConnectionInfo(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.
| |
ConnectionInfo(ConnectionType, ShortGuid, EndPoint, Boolean, ApplicationLayerProtocolStatus) |
Create a connectionInfo object which can be used to inform a remote peer of local connectivity
|
Methods
Name | Description | |
---|---|---|
Deserialize(Stream) |
Deserializes from a Stream to the current IExplicitlySerialize object
| |
Deserialize(MemoryStream, ConnectionInfo ) |
Deserializes from a memory stream to a ConnectionInfo object
| |
Equals(Object) |
Compares this ConnectionInfo object with obj and returns true if obj is ConnectionInfo and both
the NetworkIdentifier and RemoteEndPoint match.
(Overrides Object Equals(Object).) | |
Equals(ConnectionInfo) |
Compares this ConnectionInfo object with other and returns true if both the NetworkIdentifier
and RemoteEndPoint match.
| |
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 |
Returns NetworkIdentifier.GetHashCode() ^ RemoteEndPoint.GetHashCode();
(Overrides Object GetHashCode .) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ResetNetworkIdentifer |
Replaces the current networkIdentifier with that provided
| |
Serialize |
Serializes the current IExplicitlySerialize object to the provided Stream | |
ToString |
Returns a string containing suitable information about this connection
(Overrides Object ToString .) |
Operators
Name | Description | |
---|---|---|
Equality |
Returns left.Equals(right)
| |
Inequality |
Returns !left.Equals(right)
|
Properties
Name | Description | |
---|---|---|
ApplicationLayerProtocol |
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
| |
ConnectionCreationTime |
The DateTime corresponding to the creation time of this connection object
| |
ConnectionEstablishedTime |
The DateTime corresponding to the creation time of this connection object
| |
ConnectionListener |
If this connection is ServerSide references the listener that was used.
| |
ConnectionState |
Describes the current state of the connection
| |
ConnectionType |
The type of this connection
| |
IsConnectable |
True if the RemoteEndPoint is connectable.
| |
LastTrafficTime |
The DateTime corresponding to the time data was sent or received
| |
LocalEndPoint |
The EndPoint corresponding to the local end of this connection.
| |
NetworkIdentifier |
Returns the networkIdentifier of this peer as a ShortGuid. If the NetworkIdentifier has not yet been set returns ShortGuid.Empty.
| |
RemoteEndPoint |
The EndPoint corresponding to the local end of this connection.
| |
ServerSide |
True if connection was originally established by remote
|
See Also