[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: KExtendedSocket & waitForMore
From: Kostko <kostko () jweb-network ! net>
Date: 2003-07-16 7:27:33
[Download RAW message or body]
I have the folowing code:
// ...
writeBlock(cmd.latin1(), cmd.length());
int readBytes = waitForMore(5000); // wait for the server's response
if (readBytes > 0) {
// read it...
} else {
fprintf(stderr, "nothing to read\n");
return;
}
and i always get "nothing to read", and right after this the readReady
signal is emited. the socket has flags "ipv4Socket | ipv6Socket |
inputBufferedSocket" and it is non-blocking. so what am i doing wrong
here ?
>> 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