home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_02_05 / 2n05033b < prev    next >
Text File  |  1991-03-27  |  1KB  |  44 lines

  1. /*
  2.  *  File:    NetBIOS.H
  3.  *  Purpose:    Contains definitions and declarations for
  4.  *        NetBIOS communications
  5.  */
  6.  
  7. #ifndef    STANDARD
  8. #include    "standard.h"
  9. #endif
  10.  
  11. /**
  12.    NetBIOS Command Block
  13. **/
  14. typedef struct NetbiosCmdBlk {
  15.     BYTE    command;    /* command code    */
  16.     BYTE    status;        /* return status*/
  17.     BYTE    localSession;    /* session #    */
  18.     BYTE    nameNumber;    /* name number  */
  19.     FPTR    buffer;        /* data buffer    */
  20.     WORD    length;        /* buffer size    */
  21.     char    callName[16];    /* remote name    */
  22.     char    name[16];    /* local name    */
  23.     BYTE    receiveTimeOut;    /* for NB_RECV    */
  24.     BYTE    sendTimeOut;    /* for NB_SEND    */    
  25.     void    (interrupt far *post)();
  26.     BYTE    lanAdapter;    /* adapter #    */
  27.     BYTE    commandDone;    /* finish flag    */
  28.     BYTE    reserved[4];
  29. } NCB;
  30.  
  31.  
  32. /**
  33.    NetBIOS Command Codes
  34. **/
  35. #define    NB_ADDNAME    0x30    /* add unique name */
  36. #define    NB_DELNAME    0x31    /* delete name       */
  37. #define    NB_CALL        0x10    /* request session */
  38. #define    NB_LISTEN    0x11    /* wait for call   */
  39. #define    NB_HANGUP    0x12    /* end session     */
  40. #define    NB_SEND        0x14    /* session send    */
  41. #define    NB_RECV        0x15    /* session receive */
  42.  
  43.  
  44.