home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff225.lzh / AmigaTCP / src / session.h < prev    next >
C/C++ Source or Header  |  1989-06-24  |  494b  |  22 lines

  1. extern int mode;
  2. #define    CMD_MODE    1    /* Command mode */
  3. #define    CONV_MODE    2    /* Converse mode */
  4.  
  5. /* Session control structure; only one entry is used at a time */
  6. struct session {
  7.     int type;
  8. #define    FREE    0
  9. #define    TELNET    1
  10. #define    FTP    2
  11.     union {
  12.         struct ftp *ftp;
  13.         struct telnet *telnet;
  14.     } cb;
  15.     int (*parse)();    /* Where to hand typed input when conversing */
  16. };
  17. #define    NULLSESSION    (struct session *)NULL
  18. extern struct session sessions[];
  19.  
  20. extern struct session *current;
  21. extern int16 lport;
  22.