home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / NETBIO.ZIP / NETBIOS / NETGBLV.H < prev    next >
Text File  |  1991-12-02  |  1KB  |  38 lines

  1. struct CodeTable
  2. {
  3.         unsigned char code;
  4.         char *label;
  5. };
  6.  
  7. union ncb_types
  8.    {
  9.    struct network_control_block basic_ncb;
  10.    struct ncb_chain_send send;
  11.    struct ncb_reset reset;
  12.    };
  13.  
  14. union ncb_types Ncb;            /* NCB used for all commands          */
  15.  
  16. byte NetReset();
  17. byte NetAddName();
  18. byte NetCall();
  19. byte NetSend();
  20. byte NetListen();
  21. byte NetReceive();
  22. byte NetHangup();
  23. unsigned TRNcmd();
  24.  
  25. byte retcode;                   /* NCB retcode                        */
  26. byte Mode;                      /* 0 = Send, 1 = Recv                 */
  27. byte Lana;                      /* 0 or 1                             */
  28. byte LclName[16];               /* local name to add to the network   */
  29. byte NetName[16];               /* remote name to call/listen for     */
  30. byte Message[80];               /* send/recv buffer                   */
  31. byte Message1[300];             /* send/recv buffer for chain send    */
  32. byte Message2[300];
  33.  
  34. #define  NET_LSN         6      /* maximum number of local sessions   */
  35. #define  NET_NUM        12      /* maximum number of outstanding NCBs */
  36. #define  SEND            0      /* Mode flag for SEND                 */
  37. #define  RECV            1      /* Mode flag for RECEIVE              */
  38.