home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / msysjour / vol07 / 02 / netbios / session.h < prev    next >
C/C++ Source or Header  |  1992-02-29  |  2KB  |  59 lines

  1. /***************************************************************************
  2.  *  SESSION.H                                   *
  3.  *    This file contains following NetBIOS Session Service related       *
  4.  *    function prototypes:                           *
  5.  *
  6.  *      SendSess   () :- Sends data on an established session        *
  7.  *      ReceiveSess() :- Receives data for a given session           *
  8.  *      HangSess   () :- Terminate  a given session               *
  9.  *      Call()    :- Establish a session with a remote name       *
  10.  *      Listen()    :- Put yourself in "listening" state to receive    *
  11.  *               remote calls.                   *
  12.  *                                       *
  13.  *  History:    Alok Sinha  October, 1991    Created               *
  14.  *                                       *
  15.  ***********************************************************************/
  16.  
  17. #ifndef SESSION_INCLUDED
  18. #define SESSION_INCLUDED
  19.  
  20.  
  21. unsigned char    SendSess(     unsigned char ucLana,
  22.                   unsigned char ucLsn,
  23.                   char far * pchData,
  24.                   unsigned short usDataLen
  25.             );
  26.  
  27. unsigned char    ReceiveSess(    unsigned char ucLana,
  28.                 unsigned char ucLsn,
  29.                 char far * pchData,
  30.                 unsigned short *pusDataLen
  31.                );
  32.  
  33.  
  34. unsigned char    HangSess(   unsigned char ucLana,
  35.                 unsigned char ucLsn
  36.             );
  37.  
  38.  
  39. unsigned char    Call(     unsigned char ucLana,
  40.              char far * pchRemoteName,
  41.              char far * pchLocalName,
  42.              unsigned char ucSto,
  43.              unsigned char ucRto,
  44.              unsigned char far *ucLsn
  45.             );
  46.  
  47.  
  48.  
  49. unsigned char    Listen(     unsigned char ucLana,
  50.              char far * pchRemoteName,
  51.              char far * pchLocalName,
  52.              unsigned char ucSto,
  53.              unsigned char ucRto,
  54.              unsigned char far *ucLsn
  55.              );
  56.  
  57.  
  58. #endif // SESSION_INCLUDED
  59.