diff options
author | seibelr <seibelr@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-11-24 22:12:20 +0000 |
---|---|---|
committer | seibelr <seibelr@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-11-24 22:12:20 +0000 |
commit | 47b676670dc9373bc77af80388e0b51e36134738 (patch) | |
tree | aacce0809279e1d142e7b196a84ff10dfbdae4d0 /CIAO/DAnCE/RepositoryManager/HTTP_Client.cpp | |
parent | 3dd4e2fe6c64de3a9db04757eade78d764b578f1 (diff) | |
download | ATCD-GH5_0port.tar.gz |
Added the ACE and TAO for this branchGH5_0port
Diffstat (limited to 'CIAO/DAnCE/RepositoryManager/HTTP_Client.cpp')
-rw-r--r-- | CIAO/DAnCE/RepositoryManager/HTTP_Client.cpp | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/CIAO/DAnCE/RepositoryManager/HTTP_Client.cpp b/CIAO/DAnCE/RepositoryManager/HTTP_Client.cpp deleted file mode 100644 index 73a8071f305..00000000000 --- a/CIAO/DAnCE/RepositoryManager/HTTP_Client.cpp +++ /dev/null @@ -1,59 +0,0 @@ -// $Id$ - -// HTTP_Client.cpp, Stoyan - -#include "HTTP_Client.h" -#include "HTTP_Handler.h" -#include "ace/OS_NS_string.h" - -HTTP_Client::HTTP_Client (void) -{ -} - -HTTP_Client::~HTTP_Client (void) -{ - this->close (); -} - -// initialize address and filename. No network i/o in open -int -HTTP_Client::open (const ACE_TCHAR *filename, - const ACE_TCHAR *hostname, - u_short port) -{ - filename_ = ACE_OS::strdup (filename); - inet_addr_.set (port, hostname); - return 0; -} - -// read from connection length bytes from offset, into Message block -int -HTTP_Client::read (ACE_Message_Block *mb) -{ - - // Create a HTTP_Client Reader - HTTP_Reader HTTP_reader (mb, filename_); - HTTP_Handler *brp = &HTTP_reader; - - // Connect to the server - if (connector_.connect (brp, inet_addr_) == -1) - ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "HTTP_Client::read():Connector error"), -1); - - return HTTP_reader.byte_count (); - -} - -// close down the HTTP_Client -int -HTTP_Client::close (void) -{ - - if (filename_) - { - ACE_OS::free ((void *) filename_); - filename_ = 0; - } - return 0; - -} - |