diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-10-11 15:10:34 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-10-11 15:10:34 +0000 |
commit | 23111468052a9f4ec607b9b10123f62004348216 (patch) | |
tree | f81e272d0159b645be87a876da75ae4911e4dfaa /apps/JAWS/stress_testing/util.cpp | |
parent | d71e1419e3c009e237fec7a91e832be8fc0fe31a (diff) | |
download | ATCD-TAO-1_0_6.tar.gz |
This commit was manufactured by cvs2svn to create tag 'TAO-1_0_6'.TAO-1_0_6
Diffstat (limited to 'apps/JAWS/stress_testing/util.cpp')
-rw-r--r-- | apps/JAWS/stress_testing/util.cpp | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/apps/JAWS/stress_testing/util.cpp b/apps/JAWS/stress_testing/util.cpp deleted file mode 100644 index 29cd92ef143..00000000000 --- a/apps/JAWS/stress_testing/util.cpp +++ /dev/null @@ -1,60 +0,0 @@ -// $Id$ - -#include "util.h" - -ACE_RCSID(stress_testing, util, "$Id$") - -URL::URL(char *input_buf) { - - char *buffer = new char[BUFSIZ]; - - ACE_OS::strcpy(buffer,input_buf); - if(buffer == NULL) - return; - - char *temp; - char *lasts; - - if((temp = ACE_OS::strtok_r(buffer,": ",&lasts))) { - protocol_ = (char *) ACE_OS::malloc(strlen(temp) + 1); - ACE_OS::strcpy(protocol_, temp); - } - - if((temp = ACE_OS::strtok_r(NULL,"/",&lasts))) { - hostname_ = (char *) ACE_OS::malloc(strlen(temp) + 1); - ACE_OS::strcpy(hostname_, temp); - } - if((temp = ACE_OS::strtok_r(NULL,"\0",&lasts))) { - filename_ = (char *) malloc(strlen(temp) + 1); - ACE_OS::strcpy(filename_, temp); - } - else { - filename_ = (char *) malloc(strlen(INDEX_NAME) + 1); - ACE_OS::strcpy(filename_,INDEX_NAME); - } -} - -char *URL::get_protocol(void) { - return protocol_; -} - -char *URL::get_hostname(void) { - return hostname_; -} - -char *URL::get_filename(void) { - return filename_; -} - - - - - -void cleanup(void) { - unlink(TEMPORARY_FILE_NAME); - unlink(INCOMING_FILE_NAME); -} - -void sigint(int) { - cleanup(); -} |