[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: May a read a line of text with KSock ?
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2003-07-17 12:21:00
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Thursday 17 July 2003 11:18, Giuseppe Torelli wrote:
> Hi,
>
> I'm using KSock class with send and recv UNIX functions.
> I know there is QSocket that does this with ReadLine functions
> but I'm getting trouble with it. With Ksock I'm able to read data from
> the web 1K each time I call recv. The problem is that I have to strip
> the HTML off and the QRegExp function need the <HTML TAG> all in
> one line while the recv functions returns a partial <HTML TAG> so the
> QRegExp doesn't work. Do you know any other alternatives or trick ?

Wouldn't it be easier to use some KIO classes to retrieve a HTML file from 
a webserver?

Something like KIO:TransferJob or KIO::NetAccess?

Cheers,
Kevin
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Krammer <kevin.krammer@gmx.at>
Developer at the Kmud Project http://www.kmud.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[Attachment #5 (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic