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.h | |
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.h')
-rw-r--r-- | CIAO/DAnCE/RepositoryManager/HTTP_Client.h | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/CIAO/DAnCE/RepositoryManager/HTTP_Client.h b/CIAO/DAnCE/RepositoryManager/HTTP_Client.h deleted file mode 100644 index ac0f9cbea92..00000000000 --- a/CIAO/DAnCE/RepositoryManager/HTTP_Client.h +++ /dev/null @@ -1,72 +0,0 @@ - -/* -*- C++ -*- */ - -//============================================================================= -/** - * @file HTTP_Client.h - * - * $Id$ - * - * This is the HTTP_Client class, which is the API for doing file - * uploads/downloads. - * - * @author Stoyan Paunov - */ -//============================================================================= - - -#ifndef HTTP_Client_H -#define HTTP_Client_H - - -#include "ace/INET_Addr.h" -#include "ace/Svc_Handler.h" -#include "ace/SOCK_Connector.h" -#include "ace/Connector.h" -#include "ace/Message_Block.h" -#include "HTTP_Handler.h" - -/** - * @class HTTP_Client - * - * @brief HTTP_Client is intended to provide application API to - * classes that wish to do network i/o at a very - * high level of abstraction. - * - * This class provides the ability to retrieve data from - * the network, of specified length and offset, and potentially - * use any protocol "under the hood" to do so. It currently - * uses HTTP. See HTTP_Handler also. - */ -class HTTP_Client -{ -public: - HTTP_Client (void); - ~HTTP_Client (void); - - /// Initializes the class with the given filename, hostname and port. - /// it should be called with the filename, before any read/write calls - int open (const ACE_TCHAR *filename, - const ACE_TCHAR *hostname = ACE_DEFAULT_SERVER_HOST, - u_short port = 80); - - /// Starts a connection, and reads a file from the server into - /// Message_Block mb - int read (ACE_Message_Block *mb); - - /// Frees memory allocated for filename. - int close (); - -private: - /// Store the internet address of the server - ACE_INET_Addr inet_addr_; - - /// The filename - ACE_TCHAR *filename_; - - /// The connector endpoint to initiate the client connection - ACE_Connector<HTTP_Handler, ACE_SOCK_CONNECTOR> connector_; - -}; - -#endif /* HTTP_Client_H */ |