Class TcpDeviceAddress

Namespace
ProtoTest.Devices.Tcp
Assembly
ProtoTest.Devices.Tcp.dll

Parses and formats the tcp://host:port addresses both TCP transports use.

public static class TcpDeviceAddress
Inheritance
TcpDeviceAddress
Inherited Members

Methods

Format(string, int)

Formats a host and port as a tcp:// address, bracketing an IPv6 host.

public static string Format(string host, int port)

Parameters

host string
port int

Returns

string

Parse(string)

Splits tcp://host:port into its host and port, or fails naming the expected form.

public static (string Host, int Port) Parse(string address)

Parameters

address string

Returns

(string Host, int Port)