home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD v1.2 / amidev_cd_12.iso / devcon / milan_1991 / devcon91.2 / network / sana2 / include / netbuff.h next >
C/C++ Source or Header  |  1992-09-01  |  992b  |  48 lines

  1. #ifndef LIBRARIES_NETBUFF_H
  2. #define LIBRARIES_NETBUFF_H 1
  3. /*
  4. **    $Filename: netbuff.h $
  5. **    $Release: Developer Information$
  6. **    $Revision: 1.1 $
  7. **    $Date: 91/05/14 $
  8. **
  9. **    NetBuff library structure definitions.
  10. **
  11. **    (C) Copyright 1991 Raymond S. Brand
  12. **        All Rights Reserved
  13. **
  14. **    (C) Copyright 1991 Commodore-Amiga Inc.
  15. **        All Rights Reserved
  16. */
  17.  
  18.  
  19. #ifndef EXEC_TYPES_H
  20. #include <exec/types.h>
  21. #endif /* !EXEC_TYPES_H */
  22. #ifndef EXEC_LISTS_H
  23. #include <exec/lists.h>
  24. #endif /* !EXEC_LISTS_H */
  25.  
  26.  
  27. #define NETBUFFNAME    "netbuff.library"
  28.  
  29.  
  30. struct NetBuffSegment
  31.     {
  32.     struct MinNode Node;    /* segment links               */
  33.     ULONG PhysicalSize;    /* buffer size of this segment */
  34.     ULONG DataOffset;    /* offset to valid data        */
  35.     ULONG DataCount;    /* valid bytes in this segment */
  36.     UBYTE *Buffer;        /* pointer to data buffer area */
  37.     };
  38.  
  39.  
  40. struct NetBuff
  41.     {
  42.     struct MinList List;    /* segments                  */
  43.     ULONG Count;        /* amount of data in NetBuff */
  44.     };
  45.  
  46.  
  47. #endif    /* LIBRARIES_NETBUFF_H */
  48.