home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.bin / SourceCode / MiscKit1.2.6 / Headers / misckit / MiscINETAddress.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-22  |  638 b   |  33 lines

  1. /*  Class to act as a cover for Internet addresses.
  2.  *
  3.  *  Copyright (c) 1994 Christopher J. Kane.
  4.  *
  5.  *  This software is subject to the terms of the MiscKit license
  6.  *  agreement. Refer to the license document included with the
  7.  *  MiscKit distribution for these terms.
  8.  *
  9.  *  Version 1.0 BETA (20 April 1994)
  10.  */
  11.  
  12. #import <objc/Object.h>
  13. #import <sys/types.h>
  14. #import <netinet/in.h>
  15.  
  16. @interface MiscINETAddress:Object
  17. {
  18.     struct in_addr address;
  19.     char *hostname;
  20. }
  21.  
  22. + localAddress;
  23.  
  24. - init;
  25. - initFromName:(const char *)name;
  26. - initTo:(struct in_addr)addr;
  27.  
  28. - (struct in_addr)address;
  29. - (char *)hostname;
  30. - (char *)stringAddress;
  31.  
  32. @end
  33.