Struct TransportAddress
- Namespace
- IceRpc.Transports
- Assembly
- IceRpc.dll
Represents a transport address with the host and port to connect to or listen on.
public readonly record struct TransportAddress : IEquatable<TransportAddress>
- Implements
- Inherited Members
Constructors
TransportAddress()
Constructs a transport address.
public TransportAddress()
Properties
Host
Gets or initializes the host.
public required string Host { get; init; }
Property Value
- string
The host name or IP address.
Params
Gets or initializes the transport-specific parameters.
public ImmutableDictionary<string, string> Params { get; init; }
Property Value
- ImmutableDictionary<string, string>
The transport parameters. Defaults to an empty dictionary.
Port
Gets or initializes the port number.
public ushort Port { get; init; }
Property Value
- ushort
The port number.
TransportName
Gets or initializes the transport name.
public string? TransportName { get; init; }