diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
commit | 3df4acfa816441fc28a95dee6d0191a927145d95 (patch) | |
tree | b5ae7ca44662cfd8e5c95f1826e4406021a606f5 /apps/JAWS/stress_testing/util.cpp | |
parent | 60a5612b83d856fc0adc52b9f39fac9960ec9818 (diff) | |
download | ATCD-pre-subset.tar.gz |
This commit was manufactured by cvs2svn to create tag 'pre-subset'.pre-subset
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(); -} |