00001 // ---------------------------------------------------------------------------- 00002 // CERTI - HLA RunTime Infrastructure 00003 // Copyright (C) 2002-2005 ONERA 00004 // 00005 // This program is free software ; you can redistribute it and/or 00006 // modify it under the terms of the GNU Lesser General Public License 00007 // as published by the Free Software Foundation ; either version 2 of 00008 // the License, or (at your option) any later version. 00009 // 00010 // This program is distributed in the hope that it will be useful, but 00011 // WITHOUT ANY WARRANTY ; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 // Lesser General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU Lesser General Public 00016 // License along with this program ; if not, write to the Free Software 00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 // ---------------------------------------------------------------------------- 00019 00020 #ifndef CERTI_SOCKET_HTTP_PROXY_HH 00021 #define CERTI_SOCKET_HTTP_PROXY_HH 00022 00023 #include "SocketTCP.hh" 00024 00025 namespace certi { 00026 00027 class CERTI_EXPORT SocketHTTPProxy : public SocketTCP 00028 { 00029 public : 00030 SocketHTTPProxy(); 00031 virtual ~SocketHTTPProxy(); 00032 00033 virtual void createConnection(const char *server_name, unsigned int port) 00034 throw (NetworkError); 00035 00036 protected: 00037 int sendHTTPConnect(const char* addr, in_port_t port); 00038 size_t receiveLine(char *Buffer, size_t maxSize) throw (NetworkError, NetworkSignal); 00039 }; 00040 00041 } // namespace certi 00042 00043 #endif // CERTI_SOCKET_HTTP_PROXY_HH 00044