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 @@ -15,13 +15,21 @@ 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> #include <qdragobject.h> #include <qtextbrowser.h> +#include <qmessagebox.h> #include <stdio.h> +#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" class HttpFactory : public QMimeSourceFactory @@ -31,9 +39,13 @@ public: const QMimeSource * data(const QString &abs_name) const; const QMimeSource * data(const QString &abs_or_rel_name, const QString & context) const; private: - QSocket *socket; +// QSocket *socket; HttpComm *comm; QTextDrag *text; QImageDrag *image; QTextBrowser *browser; + + const QByteArray processResponse( int sockfd, bool &isText) const; + const QByteArray recieveNormal( int sockfd, int dataLen ) const; + const QByteArray recieveChunked( int sockfd ) const; }; |