Skip to content

Std socket socketaddress

std:std.socket.SocketAddress

Class SocketAddress#

The SocketAddress class.

A socket address encapsulates the hostname and service of a socket.

Socket address objects are returned by the Socket.Address and Socket.PeerAddress properties, and indirectly returned by Socket.ReceiveFrom.

Constructors
New Creates a new empty socket address.
Properties
Host The hostname represented by the address. (read only)
Service The service represented by the address. (read only)
Methods
Operator <=> Comparison operator.
To Converts the address to a string.