Instance Property

name

Returns one of the hostnames of the receiver.

Declaration

var name: String? { get }

Return Value

One of the hostnames of the receiver. Can be either a simple hostname, such as "sales", or a fully qualified domain name, such as "sales.anycorp.com".

See Also

Getting Host Information

var address: String?

Returns one of the network addresses of the receiver.

var addresses: [String]

Returns all the network addresses of the receiver.

var localizedName: String?

Returns the name used as by default when publishing NSNetServices.

var names: [String]

Returns all the hostnames of the receiver.