Class ServerNames
Server names: a DNS name, IPv4 address or bracketed IPv6 address, with an optional port.
Inherited Members
Namespace: Uniform.Matrix.Protocol.Server
Assembly: Uniform.Matrix.Protocol.Server.dll
Syntax
public static class ServerNames
Fields
| Edit this page View SourceDefaultPort
Default federation port when the name and its delegation give none.
Declaration
public const int DefaultPort = 8448
Field Value
| Type | Description |
|---|---|
| int |
Methods
| Edit this page View SourceIsIpLiteral(string)
Return whether host from TryParse(string?, out string?, out int?) is an IP address literal rather than a DNS name.
Declaration
public static bool IsIpLiteral(string host)
Parameters
| Type | Name | Description |
|---|---|---|
| string | host |
Returns
| Type | Description |
|---|---|
| bool |
TryParse(string?, out string?, out int?)
Split serverName into host and port; false when it is not a valid server name.
Declaration
public static bool TryParse(string? serverName, out string? host, out int? port)
Parameters
| Type | Name | Description |
|---|---|---|
| string | serverName | E.g. |
| string | host | Host as written, IPv6 with its brackets. |
| int? | port | Explicit port, or null. |
Returns
| Type | Description |
|---|---|
| bool |