Click or drag to resize

ProtocolCreateCanonicalAddress Method

Returns the full address. Eg add in a default port number. Should return an address that uniquely identifies the peer.

The address should explicitly contain any information required to connect (including any defaults), but exclude any connection parameters, routing information, etc, unless required to identify the peer. Ambiguous parts of the address should be standardised - eg where information is case insensitive, it should be converted to lower case. Any parts of the address not required should be removed.

(The framework will automatically convert hostnames to an appropriate IP address, and will set the scheme correctly, so no need to modify those parts.)

Namespace:  Demo3D.Net
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 15.0.2.11458
Syntax
C#
protected virtual ProtocolAddress CreateCanonicalAddress(
	ProtocolAddress address,
	ProtocolAddress canonicalAddress
)

Parameters

address
Type: Demo3D.NetProtocolAddress
The address being canonized.
canonicalAddress
Type: Demo3D.NetProtocolAddress
The canonical address as currently converted.

Return Value

Type: ProtocolAddress
The canonical address.
See Also