Initializer

init(name:)

Returns a host with a specific name.

Declaration

convenience init(name: String?)

Parameters

hostname

Name of the host to look up. Can be either a simple hostname, such as "sales", or a fully qualified domain name, such as "sales.anycorp.com".

Return Value

The host named hostname.

See Also

Creating Hosts

class func current() -> Self

Returns an NSHost object representing the host the process is running on.

init(address: String)

Returns the NSHost with the Internet address address.