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 | |
| ConnectionInfo(EndPoint, ApplicationLayerProtocolStatus) |
Create a new ConnectionInfo object pointing at the provided remote | |
| 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) | ||
| 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 | |
| Equals(ConnectionInfo) |
Compares this ConnectionInfo object with other and returns true if both the NetworkIdentifier
and RemoteEndPoint match.
| |
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from | ||
| GetHashCode |
Returns NetworkIdentifier.GetHashCode() ^ RemoteEndPoint.GetHashCode();
(Overrides | |
Gets the (Inherited from | ||
Creates a shallow copy of the current (Inherited from | ||
| ResetNetworkIdentifer |
Replaces the current networkIdentifier with that provided
| |
| Serialize | ||
| ToString |
Returns a string containing suitable information about this connection
(Overrides |
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 | |
| NetworkIdentifier |
Returns the networkIdentifier of this peer as a ShortGuid. If the NetworkIdentifier has not yet been set returns ShortGuid.Empty.
| |
| RemoteEndPoint |
The | |
| ServerSide |
True if connection was originally established by remote
|
See Also