author | spiralman <spiralman> | 2003-03-15 15:27:49 (UTC) |
---|---|---|
committer | spiralman <spiralman> | 2003-03-15 15:27:49 (UTC) |
commit | 90c05874265e7047c0ca933a43c433eb0d7f04e4 (patch) (side-by-side diff) | |
tree | d86c5d52c226f2a873b3c5745716dcd5ee38de3d /noncore/net/ubrowser/httpfactory.h | |
parent | 2c53d85583ebece42b3b4c155540cd6a01542731 (diff) | |
download | opie-90c05874265e7047c0ca933a43c433eb0d7f04e4.zip opie-90c05874265e7047c0ca933a43c433eb0d7f04e4.tar.gz opie-90c05874265e7047c0ca933a43c433eb0d7f04e4.tar.bz2 |
moved from using QSockets to normal unix sockets, images and chunked encoding **should** work <crosses fingers>
Diffstat (limited to 'noncore/net/ubrowser/httpfactory.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/ubrowser/httpfactory.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/noncore/net/ubrowser/httpfactory.h b/noncore/net/ubrowser/httpfactory.h index 1802f56..214120c 100644 --- a/noncore/net/ubrowser/httpfactory.h +++ b/noncore/net/ubrowser/httpfactory.h @@ -17,3 +17,3 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #include <qmime.h> -#include <qsocket.h> +//#include <qsocket.h> #include <qstring.h> @@ -21,2 +21,3 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #include <qtextbrowser.h> +#include <qmessagebox.h> @@ -24,2 +25,9 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +#include <sys/types.h> +#include <sys/socket.h> +#include <unistd.h> +#include <netinet/in.h> +#include <netdb.h> +#include <arpa/inet.h> + #include "httpcomm.h" @@ -33,3 +41,3 @@ public: private: - QSocket *socket; +// QSocket *socket; HttpComm *comm; @@ -38,2 +46,6 @@ private: QTextBrowser *browser; + + const QByteArray processResponse( int sockfd, bool &isText) const; + const QByteArray recieveNormal( int sockfd, int dataLen ) const; + const QByteArray recieveChunked( int sockfd ) const; }; |