home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / DEV.Z / NSHost.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-11  |  718 b   |  38 lines

  1. /*    NSHost.h
  2.     Abstraction of computer hosts
  3.     Copyright 1994-1996, NeXT Software, Inc.  All rights reserved.
  4. */
  5.  
  6. #if !defined(STRICT_OPENSTEP)
  7.  
  8. #import <Foundation/NSObject.h>
  9.  
  10. @class NSString, NSArray, NSMutableArray;
  11.  
  12. @interface NSHost : NSObject {
  13. @private
  14.     NSMutableArray     *names;
  15.     NSMutableArray     *addresses;
  16.     void        *reserved;
  17. }
  18.  
  19. + (NSHost *)currentHost;
  20. + (NSHost *)hostWithName:(NSString *)name;
  21. + (NSHost *)hostWithAddress:(NSString *)address;
  22.  
  23. + (void)setHostCacheEnabled:(BOOL)flag;
  24. + (BOOL)isHostCacheEnabled;
  25. + (void)flushHostCache;
  26.  
  27. - (BOOL)isEqualToHost:(NSHost *)aHost;
  28.  
  29. - (NSString *)name;
  30. - (NSArray *)names;
  31.  
  32. - (NSString *)address;
  33. - (NSArray *)addresses;
  34.  
  35. @end
  36.  
  37. #endif /* !STRICT_OPENSTEP */
  38.