QT Sockets - what it says on the tin
Posted in QT, Coding on October 15, 2009 at 11:24 am
char recv[1];
socket.waitForConnected(TM_OUT);
if (!socket.connected())
return FAILED;
if (socket.write(buf, len) < 0)
return FAILED;
if (socket.bytesAvailable())
return FAILED;
if (socket.read(recv, 1)!=1 || recv[0]!=HOST_OK_HANDSHAKE)
return FAILED;
Comment by - October 16, 2009 on 7:21 am
This is great.I was wondering this stuff only.It is very useful for me.Thanks for sharing it here…
Comment by - October 16, 2009 on 7:58 am
Very cool! Congrats on the pairing.
Trackback by - February 9, 2012 on 7:47 am
greenpeace australia campaigns…
[…]various points where Judge Rodgers may have failed to exercise […]…
Trackback by - February 29, 2012 on 2:43 pm
… [Trackback] …
[…] There you will find 87277 more Infos: itpro.co.uk/blogs-archive/davef/2009/10/15/qt-sockets-what-it-says-on-the-tin/ […] …
Trackback by - April 21, 2012 on 8:23 pm
You should check this out…
[…] Wonderful story, reckoned we could combine a few unrelated data, nevertheless really worth taking a look, whoa did one learn about Mid East has got more problerms as well […]……
Trackback by - May 8, 2012 on 7:45 pm
Websites we think you should visit…
[…]although websites we backlink to below are considerably not related to ours, we feel they are actually worth a go through, so have a look[…]……
Make a comment
Tag cloud
Archives
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
Most commented posts
Highest Rated Blog Posts
- PC Advance Required (100%)
- No excuse - it's free to encrypt! (100%)
- Virtualization's Dark Side - or stating the obvious for beginners (100%)
- Tabs - I might change my mind? (100%)
- Which Linux do you drink? (100%)
- Sat Nag (100%)
- How to be a Guitar Hero (100%)
- Home working - a tale of freedom, loneliness and slippers (100%)
- Vertigo (100%)
- Is your back door open? (90%)

