home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 3 / Meeting_Pearls_III.iso / Pearls / comm / Networking / ProNET / include / devices / pronet.h next >
C/C++ Source or Header  |  1995-06-22  |  1KB  |  46 lines

  1. #ifndef DEVICES_PRONET_H
  2. #define DEVICES_PRONET_H
  3. /*
  4. **    pronet.device V2 include file
  5. */
  6.  
  7. #ifndef EXEC_IO_H
  8. #include "exec/io.h"
  9. #endif
  10.  
  11. #define PNDERR_PORTEXISTS    -94
  12. #define PNDERR_BADCONFIG    -95
  13. #define PNDERR_DRIVERTROUBLE    -96
  14.  
  15. struct PNRequest {
  16.    struct IORequest pnr_Request;
  17.    struct MsgPort *pnr_MsgPort;
  18.    UWORD pnr_NetSourcePort;
  19.  
  20.    UWORD pnr_NetDestPort;
  21.    UBYTE *pnr_Data1;
  22.    ULONG pnr_Length1;
  23.    UBYTE *pnr_Data2;
  24.    ULONG pnr_Length2;
  25. };
  26.  
  27. /*
  28.  pnr_MsgPort        Messageport where data sent from the other machine
  29.             will be sent to.
  30.  pnr_NetSourcePort    Logical Portnumber of the device-user.
  31.  ^^ Both values must be specified at device-opening time and must remain
  32.     until closing the device.
  33.  
  34.  pnr_NetDestPort    Messageport where the data is to be sent to.
  35.  pnr_Data1/2        Length of both data added must NOT be higher
  36.  pnr_Length1/2        than $4000 (16K) - if you just want to send
  37.             one chunk of data, make pnr_Length2 = 0
  38. */
  39.  
  40. #define PNP_NAME    -1
  41. #define PNP_NEXTFREE    -2
  42.  
  43. #define PND_WRITE    3
  44.  
  45. #endif    /* DEVICES_PRONET_H */
  46.