Google
Web alhem.net
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

ExecSocket.h

Go to the documentation of this file.
00001 #ifndef _EXECSOCKET_H 00002 #define _EXECSOCKET_H 00003 00004 #include <SocketHandler.h> 00005 #include <HTTPSocket.h> 00006 00007 00008 class ExecSocket : public HTTPSocket 00009 { 00010 public: 00011 ExecSocket(SocketHandler& ); 00012 ~ExecSocket(); 00013 00014 void OnFirst(); 00015 void OnHeader(const std::string& ,const std::string& ); 00016 void OnHeaderComplete(); 00017 void OnData(const char *,size_t); 00018 00019 void Exec(); 00020 00021 const std::string& GetHttpDate(); 00022 00023 private: 00024 void header(FILE *,int,const std::string& ); 00025 void Send64(const std::string& str64, const std::string& type); 00026 int m_content_length; 00027 static int m_request_count; 00028 FILE *m_file; 00029 int m_received; 00030 std::string m_tmpname; 00031 int m_request_id; 00032 // headers 00033 std::string m_http_cookie; 00034 std::string m_content_type; 00035 std::string m_content_length_str; 00036 std::string m_if_modified_since; 00037 std::string m_http_date; 00038 }; 00039 00040 00041 00042 00043 #endif // _EXECSOCKET_H

Generated on Thu Feb 10 22:42:34 2005 for Distributed URL Classification Tool by doxygen 1.3.7