lukeh@xedoc.com.au
)richard@brainstorm.co.uk
)Version: 1.47
Date: 2004/09/23 08:19:29
Copyright: (C) 1996, 1997,1999 Free Software Foundation, Inc.
- Declared in:
- Foundation/NSHost.h
Standards:
- MacOS-X
- OpenStep
- GNUstep
Instances of this class encapsulate host information. Constructors based on host name or numeric address are provided.
Method summaryGet current host object.
Clear cache of host info instances.
Get a host object. Hosts are cached for efficiency. The address must be an IPV4 "dotted decimal" string, e.g.
NSHost aHost = [NSHost hostWithAddress:@"192.42.172.1"];
Get info for host with given DNS name.
Return host cache management. If enabled, only one object representing each host will be created, and a shared instance will be returned by all methods that return a host.
Set host cache management. If enabled, only one object representing each host will be created, and a shared instance will be returned by all methods that return a host.
Return host address in "dotted decimal" notation, e.g. "192.42.172.1". Chosen arbitrarily if a host has more than one.
Return all known addresses for host in "dotted decimal" notation, e.g. "192.42.172.1".
Compare hosts. Hosts are equal if they share at least one address
Return host name. Chosen arbitrarily if a host has more than one.
Return all known names for host.
- Declared in:
- Foundation/NSHost.h
Standards:
- MacOS-X
- OpenStep
- GNUstep
Adds synonym for +currentHost .
Method summarySynonym for +currentHost .