diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-26 18:15:56 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-26 18:15:56 +0000 |
commit | 3ec0a2984e41a8edf9301e8623d98aafdf9bf634 (patch) | |
tree | bf618e342e50289770a22c0f97cddef7caed6c4b /apps/JAWS/clients/Caching/http_client.cpp | |
parent | 7aca63cabc7d12d4f0687c39fbe096b38fed9068 (diff) | |
download | ATCD-3ec0a2984e41a8edf9301e8623d98aafdf9bf634.tar.gz |
This commit was manufactured by cvs2svn to create tag 'TAO-0_4_3'.TAO-0_4_3
Diffstat (limited to 'apps/JAWS/clients/Caching/http_client.cpp')
-rw-r--r-- | apps/JAWS/clients/Caching/http_client.cpp | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/apps/JAWS/clients/Caching/http_client.cpp b/apps/JAWS/clients/Caching/http_client.cpp deleted file mode 100644 index 9238ace3194..00000000000 --- a/apps/JAWS/clients/Caching/http_client.cpp +++ /dev/null @@ -1,70 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// apps/JAWS/clients/Caching -// -// = FILENAME -// http_client.cpp -// -// = DESCRIPTION -// This is a very simple client. It accepts URLs from a prompt, and -// will try to fetch them. Also accepts shell escapes. -// -// = AUTHOR -// James Hu -// -// ============================================================================ - -#include "http_handler.h" - -ACE_RCSID(Caching, http_client, "$Id$") - -int -main (int, char *[]) -{ - // Present a command line. - // * Accept a URL. - // Pass it to the HTTP_Connector. - // Connect. - // Report status. - // * Accept shell escape character. - - char buf[BUFSIZ]; - - ACE_DEBUG ((LM_DEBUG, "* ")); - - while (ACE_OS::fgets (buf, sizeof (buf), stdin) != NULL) - { - char *s = buf; - - while (isspace (*s)) - s++; - - if (*s == '!') - { - do - s++; - while (isspace (*s)); - - // Shell command. - if (ACE_OS::system (s) == -1) - ACE_ERROR ((LM_ERROR, " ! Error executing: %s\n", s)); - } - else if (ACE_OS::strncmp (s, "http://", 7) == 0) - { - // URL - HTTP_Connector connector; - connector.connect (s); - } - else - ACE_ERROR ((LM_ERROR, " ? I don't understand: %s\n", s)); - - ACE_ERROR ((LM_ERROR, "* ")); - } - - ACE_DEBUG ((LM_DEBUG, "\nBye!\n")); - - return 0; -} |