summaryrefslogtreecommitdiff
path: root/apps/JAWS/stress_testing/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'apps/JAWS/stress_testing/util.cpp')
-rw-r--r--apps/JAWS/stress_testing/util.cpp60
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();
-}