00001
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _DELIVER_H
00024 #define _DELIVER_H
00025
00026 #include <string>
00027 #include <TcpSocket.h>
00028
00029
00030 class Deliver
00031 {
00032 public:
00033 Deliver(TcpSocket&,
00034 const std::string& host,
00035 const std::string& protocol,
00036 const std::string& method,
00037 const std::string& url);
00038 ~Deliver();
00039
00040 void Run();
00041 void url_this(const std::string& url_in,
00042 std::string& host,int& port,std::string& url,std::string& file,std::string& ext);
00043
00044 private:
00045 TcpSocket& m_socket;
00046 std::string m_host;
00047 std::string m_protocol;
00048 std::string m_method;
00049 std::string m_url;
00050 };
00051
00052
00053
00054
00055 #endif // _DELIVER_H