home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / Vector18.lha / ParNetExample / stream.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-18  |  919 b   |  35 lines

  1. /*
  2.  *  STREAM.H
  3.  */
  4.  
  5.  
  6. /*
  7.  * This code was originally written by Matthew Dillon and put into Public Domain
  8.  *
  9.  * All changes concerning the adaption of Matt's original code to the
  10.  * Vector Connection I/O board are © 1991-1993 by Henning Schmiedehausen
  11.  * All rights for this changes are reserved. The original code is Public Domain
  12.  *
  13.  * This code is distributed with the expressed written permission of Matthew
  14.  * Dillon (Thank you very much, Matt)
  15.  *
  16.  */
  17.  
  18. #define ST_DONE     0   /*    no state            */
  19. #define ST_CONNECT1    1   /*    connect request      & ToPort    */
  20. #define ST_CONNECT2    2   /*    request acknowledged & FromPort */
  21. #define ST_CONNECTD    3   /*    connect - data, begin stream    */
  22. #define ST_CONNECTF    4   /*    connect - fail            */
  23.  
  24. #define ST_RMASK    0xF0    /*  retry   */
  25. #define ST_RINCR    0x10
  26. #define ST_RMAX     0x20
  27.  
  28. typedef struct {
  29.     ubyte   Cmd;
  30.     ubyte   Reserved;
  31.     uword   MyPort;
  32.     uword   YourPort;
  33. } StreamCmd;
  34.  
  35.