home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / internet / tcpip / src205 / TCPIP_Src / h / dns < prev    next >
Encoding:
Text File  |  1995-04-05  |  893 b   |  30 lines

  1. #include "Terminal.h"
  2.  
  3. #define dns_PORT       53      /* TCP port for dns service */
  4. #define dnsNAMELEN     10      /* max len of user name */
  5.  
  6. /* dns protocol control block */
  7. struct dns
  8. {
  9.         struct tcb      *tcb;           /* pointer to associated tcb */
  10.         struct session  *session;       /* pointer to dns session */
  11.         Terminal        *window;
  12.         char            *user;
  13.         char            *rxdata;
  14.         int             rxcount;
  15.         int             rxexpect;
  16.         int             axfr;
  17.         FILE            *file;
  18. };
  19. #define NULLDNS        (struct dns *) 0
  20.  
  21.  
  22. /* In dnsCLI */
  23. int dodns(int, char **);
  24. struct dns *alloc_dns(void);
  25. int free_dns(struct dns *);
  26. void dnscli_rcv(struct tcb *, int16);
  27. void dnscli_rcvfile(register struct tcb *tcb, int16 cnt);
  28. void dnscli_rcvaxfr(register struct tcb *tcb, int16 cnt);
  29. void d_state(struct tcb *, char, char);
  30.