2
0

README 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. Portions created by SGI are Copyright (C) 2000 Silicon Graphics, Inc.
  2. All Rights Reserved.
  3. This directory contains three example programs.
  4. ---------------------------------------------------------------------------
  5. PROGRAM
  6. lookupdns
  7. FILES
  8. lookupdns.c
  9. res.c
  10. USAGE
  11. lookupdns <hostname1> [<hostname2>] ...
  12. DESCRIPTION
  13. This program performs asynchronous DNS host name resolution and reports
  14. IP address for each <hostname> specified as a command line argument.
  15. One ST thread is created for each host name. All threads do host name
  16. resolution concurrently.
  17. ---------------------------------------------------------------------------
  18. PROGRAM
  19. proxy
  20. FILES
  21. proxy.c
  22. USAGE
  23. proxy -l <local_addr> -r <remote_addr> [-p <num_processes>] [-S]
  24. -l <local_addr> bind to local address specified as [<host>]:<port>
  25. -r <remote_addr> connect to remote address specified as <host>:<port>
  26. -p <num_processes> create specified number of processes
  27. -S serialize accept() calls from different processes
  28. on the same listening socket (if needed).
  29. DESCRIPTION
  30. This program acts as a generic gateway. It listens for connections to a
  31. local address. Upon accepting a client connection, it connects to the
  32. specified remote address and then just pumps the data through without any
  33. modification.
  34. ---------------------------------------------------------------------------
  35. PROGRAM
  36. server
  37. FILES
  38. server.c
  39. error.c
  40. USAGE
  41. server -l <log_directory> [<options>]
  42. -l <log_directory> open all log files in specified directory.
  43. Possible options:
  44. -b <host>:<port> bind to specified address (multiple addresses
  45. are permitted)
  46. -p <num_processes> create specified number of processes
  47. -t <min_thr>:<max_thr> specify thread limits per listening socket
  48. across all processes
  49. -u <user> change server's user id to specified value
  50. -q <backlog> set max length of pending connections queue
  51. -a enable access logging
  52. -i run in interactive mode (useful for debugging)
  53. -S serialize accept() calls from different processes
  54. on the same listening socket (if needed).
  55. DESCRIPTION
  56. This program is a general server example. It accepts a client connection
  57. and outputs a short HTML page. It can be easily adapted to provide
  58. other services.
  59. ---------------------------------------------------------------------------