home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sd386v50.zip / sd386src.zip / ROUTER.H < prev    next >
Text File  |  1996-05-07  |  4KB  |  58 lines

  1. /*****************************************************************************/
  2. /* File:                                             IBM INTERNAL USE ONLY   */
  3. /*   router.h                                                                */
  4. /*                                                                           */
  5. /* Description:                                                              */
  6. /*                                                                           */
  7. /*   Include file for router.c                                               */
  8. /*                                                                           */
  9. /* History:                                                                  */
  10. /*                                                                           */
  11. /*   07/11/94 Created                                                        */
  12. /*                                                                           */
  13. /*...                                                                        */
  14. /*... 05/05/94  919   Joe   Add child process support.                       */
  15. /*...                                                                        */
  16. /*****************************************************************************/
  17.  
  18. /*****************************************************************************/
  19. /* - The connection may be a serial connection or a parallel connection.     */
  20. /*****************************************************************************/
  21. #define SERIAL     1
  22. #define PARALLEL   2
  23.  
  24. /*****************************************************************************/
  25. /* - connection type definitions.                                            */
  26. /*****************************************************************************/
  27. #define BOUND      1
  28. #define ASYNC      2
  29. #define LOCAL_PIPE 3
  30. #define _NETBIOS   4                    /* uscore used to prevent conflicts. */
  31. #define SOCKET     5
  32.  
  33. /*****************************************************************************/
  34. /* - client/server definitions                                               */
  35. /*****************************************************************************/
  36. #define _DBG       0                    /* uscore used to prevent conflicts. */
  37. #define _ESP       1                    /* uscore used to prevent conflicts. */
  38.  
  39. /*****************************************************************************/
  40. /* - this structure contains the definition of the dbg/esp connection.       */
  41. /*****************************************************************************/
  42. typedef struct
  43. {
  44.  int        ConnectType   :3;           /* Either bound, local pipe, async,  */
  45.                                         /* or, netbios.                      */
  46.  int        DbgOrEsp      :1;           /* Which end of the connection.      */
  47.  int        ComPort       :3;           /* async port number.                */
  48.  int        modem         :1;           /* modem is being used.              */
  49.  int        BitRate         ;           /* async bit speed.                  */
  50.  char      *pModemFile      ;           /* file of modem commands.           */
  51.  char      *pLsnName        ;           /* netbios logical adapter name.     */
  52. }CONNECTION;
  53.  
  54. /*****************************************************************************/
  55. /* - this tells the router to use his default connection handle.             */
  56. /*****************************************************************************/
  57. #define DEFAULT_HANDLE  (LHANDLE)-1
  58.