home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / bbs / samps.zip / BPQ.H < prev    next >
Text File  |  1992-06-20  |  2KB  |  72 lines

  1. /* Here is the include file for the G4YFB <-> G8BPQ switch
  2. C functions. */
  3.  
  4. #define CON_TO_NODE 1        /* connect to the node */
  5. #define DISC        2        /* disconnect from the node */
  6. #define RET_TO_NODE 3           /* as 2, but return the user to the node */
  7.  
  8. /* Set the HOSTINTERRUPT to use */
  9.  
  10. extern void far set_int(int);
  11.  
  12. /* set the application flag and mask */
  13.  
  14. extern void far set_appl(int, int, int);
  15.  
  16. /* send a frame */
  17.  
  18. extern void far send_frame(int, int, int, int);
  19.  
  20. /* ack a status change */
  21.  
  22. extern void far ack_status(int);
  23.  
  24. /* set the session type */
  25.  
  26. extern void far set_session(int, int);
  27.  
  28. /* transmit a raw AX.25 frame */
  29.  
  30. extern void far raw_tx(int, int, int, int);
  31.  
  32. /* get the connected callsign */
  33.  
  34. extern void far get_call(int, int, int);
  35.  
  36. /* receive a frame, returns the length or 0 if no data available */
  37.  
  38. extern int far get_frame(int, int, int);
  39.  
  40. /* get the streams status */
  41.  
  42. extern int far get_status(int);
  43.  
  44. /* get the streams connected status */
  45.  
  46. extern int far con_status(int);
  47.  
  48. /* return the number of frames in the receive queue */
  49.  
  50. extern int far rx_queue(int);
  51.  
  52. /* return the number of frames in the transmit queue */
  53.  
  54. extern int far tx_queue(int);
  55.  
  56. /* return the number of free buffers in the switch */
  57.  
  58. extern int far free_buffs(int);
  59.  
  60. /* receive a raw AX.25 frame, return 0 if none available */
  61.  
  62. extern int far raw_rx(int, int, int);
  63.  
  64. /* get the HOSTINTERRUPT being used */
  65.  
  66. extern int far get_host(void);
  67.  
  68.  
  69.  
  70.  
  71.  
  72.