home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / Networking / msend-3.3-I / msend.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-26  |  1.8 KB  |  75 lines

  1. /*
  2.  * msend.h
  3.  *
  4.  * Copyright (c) 1992 Sun Microsystems, Inc.
  5.  * Copyright (c) 1993 Zik Saleeba <zik@zikzak.apana.org.au>
  6.  *
  7.  * Header for msend client.
  8.  * This implementation may be freely copied, modified, and 
  9.  * redistributed, provided that this comment is retained.
  10.  */
  11.  
  12. /* $Id: msend.h,v 1.1 1997/10/26 07:31:25 lukeh Exp $ */
  13.  
  14. #ifdef NeXT
  15. #import <libc.h>
  16. #endif
  17.  
  18. extern char *    prog;        /* the name of the program */
  19.  
  20.  
  21. /*
  22.  * types for all procedures.
  23.  */
  24. #ifdef __ANSI__
  25. void usage(void);
  26. void collect_args(char *(**options)[], int *numargs, int argc, char *argv[]);
  27. int main(int argc, char *argv[]);
  28. void append_buffer(char **buffer, int *bufsize, int *msglen, char *addstr, int extra);
  29. void assemble_message(char *user, char *term, char *msg_text);
  30. void do_line(char **buffer, int *bufsize, int *msglen, char *linebuff);
  31. void tcp_msg(struct sockaddr_in *sp);
  32. void udp_msg(struct sockaddr_in *sp, int r, int broad);
  33. void find_broadcast_addresses(int s);
  34. void udp_decode_ack(int s);
  35. void filter(char *text);
  36. void read_file(char *homedir);
  37. void index_text(void);
  38. char *message_was_unread(int msgno);
  39. void display_message(int msgno);
  40. void write_shorter(int showmsgs);
  41. void closeup(void);
  42. void last_message(int showmsgs, int savemsgs);
  43. void unread_message(int savemsgs);
  44. int check_unread(void);
  45. void makeshort(int savemsgs);
  46. void expire(int savemsgs);
  47. #ifdef USE_READLINE
  48. char *readline(char *prompt);
  49. void add_history(char *line);
  50. #endif
  51. char *compat_strstr(char *d, char *s);
  52. #else
  53. void usage();
  54. void collect_args();
  55. int main();
  56. void append_buffer();
  57. void assemble_message();
  58. void do_line();
  59. void tcp_msg();
  60. void udp_msg();
  61. void find_broadcast_addresses();
  62. void udp_decode_ack();
  63. void filter();
  64. void last_message();
  65. void unread_message();
  66. int check_unread();
  67. void makeshort();
  68. void expire();
  69. #ifdef USE_READLINE
  70. char *readline();
  71. void add_history();
  72. #endif
  73. char *compat_strstr();
  74. #endif
  75.