Table of Contents

Class NetworkTransportHelper

Namespace
VAST.Transport
Assembly
VAST.Common.dll

Provides helper methods for network transport operations.

public static class NetworkTransportHelper
Inheritance
NetworkTransportHelper
Inherited Members

Methods

Resolve(string, AddressFamily)

Resolves a host name to an IP address string. When multiple addresses are available, one is selected at random.

public static IPAddress Resolve(string serverName, AddressFamily addressFamily = AddressFamily.Unspecified)

Parameters

serverName string

The host name or IP address to resolve.

addressFamily AddressFamily

The desired address family (e.g. IPv4 or IPv6). Use Unspecified to accept any address family.

Returns

IPAddress

The resolved IP address.

Exceptions

Exception

Thrown when the host name cannot be resolved.