home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / internet / tcpipsrc / h / finger < prev    next >
Text File  |  1994-08-20  |  1KB  |  43 lines

  1.  
  2. /*
  3.  *
  4.  *      Finger support...
  5.  *
  6.  *      Finger header defines.  Written by Michael T. Horne - KA7AXD.
  7.  *      Copyright 1988 by Michael T. Horne, All Rights Reserved.
  8.  *      Permission granted for non-commercial use and copying, provided
  9.  *      that this notice is retained.
  10.  *
  11.  */
  12.  
  13. #include "Terminal.h"
  14.  
  15. #define FINGER_PORT     79      /* TCP port for `who' (finger) service */
  16. #define FINGNAMELEN     10      /* max len of user name */
  17.  
  18. /* finger protocol control block */
  19. struct finger
  20. {
  21.         struct tcb      *tcb;           /* pointer to associated tcb */
  22.         struct session  *session;       /* pointer to finger session */
  23.         char            *user;          /* name of user to finger */
  24.         Terminal        *window;
  25. };
  26. #define NULLFING        (struct finger *) 0
  27.  
  28. extern char             fingerpath[];    /* see files.c */
  29.  
  30.  
  31. /* In FINGCLI */
  32. int dofinger(int, char **);
  33. struct finger *alloc_finger(void);
  34. int free_finger(struct finger *);
  35. void fingcli_rcv(struct tcb *, int16);
  36. void f_state(struct tcb *, char, char);
  37.  
  38. /* In FINGSERV */
  39. int finger1(int, char **);
  40. void fing_state(struct tcb *, char, char);
  41. int finger0(void);
  42. void rcv_fing(struct tcb *, int16);
  43.