SocketEndPoint

Description

sealed class Tinman.Core.IO.Sockets.SocketEndPoint

Derived from

IEndPoint

Represents a socket address for TCP/IP using IPv4 or IPv6.

Public / Constructors

Socket​End​Point


public constructor SocketEndPoint → (3)

hostname in : string

[not-null]
The hostname or IP address. See Hostname.

portNumber in : int32

[0..65535]
The port number. See PortNumber.

ipv6 opt : bool = false

Use the Internet Protocol version 6? See IsIPv6.

Creates a new instance of SocketEndPoint.

Public / Attributes

Hostname


public attribute Hostname → (get)

value : string

[not-null]
The hostname or IP address.

The hostname or IP address.

Is​IPv6


public attribute IsIPv6 → (get)

value : bool

true to prefer IPv6, false to prefer IPv4.

Prefer IPv6 over IPv4 when choosing an IP address after resolving a hostname?

If Hostname specifies an IP address, this property is ignored and the version of the specified IP address is used instead. Otherwise, the hostname is resolved into an IP address by choosing a suitable one, based on this preference.

Port​Number


public attribute PortNumber → (get)

value : int32

[0..65535]
The port number.

The port number.