home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.bin / SourceCode / MiscKit1.2.6 / Headers / misckit / MiscSocket.h < prev    next >
Encoding:
Text File  |  1994-04-22  |  689 b   |  38 lines

  1. /*  Abstract class to act as a cover for sockets.
  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/socket.h>
  14.  
  15. enum {    /* Values for type parameter */
  16.     MiscSOCK_RAW, MiscSOCK_DGRAM, MiscSOCK_STREAM
  17. };
  18.  
  19. @interface MiscSocket:Object
  20. {
  21.     int sock;
  22.     int domain;
  23.     int type;
  24. }
  25.  
  26. - init;
  27. - initDomain:(int)aDomain type:(int)aType;
  28. - close;
  29. - copyFromZone:(NXZone *)zone;
  30. - free;
  31.  
  32. - (BOOL)isClosed;
  33. - (int)domain;
  34. - (int)socket;
  35. - (int)type;
  36.  
  37. @end
  38.