PDA

View Full Version : How can QTcpServer read out its incoming data like QTcpSocket?



fulin
24th March 2010, 07:16
Hi

I'm asking really stupid question. But it seems that QTcpServer reading data is really not so straight forward. Still I haven't figure out how to do with it. Can anyone here help me?

I want to do the same thing on QTcpServer side as QTcpSocket does, i.e.

qtcpSocket->read((char *) &mySocketBuffer, (qint64) mySocketBuffer_maxSize);


Surprisingly QtcpServer has no "read" method!! How can I solve it? :(

Thank you very much!

fulin
24th March 2010, 08:15
Maybe I have got it from here

http://doc.trolltech.com/4.6/network-loopback.html