stef13013
1st September 2012, 11:24
Hi,
With Qt 4.8 under win32, I'm trying to send data to a tcp server
QTcpSocket sck;
sck.connectToHost(myip, 7800);
if (sck.waitForConnected(8000)==false)
return -1;
Connection works pretty well (I see it on the server)
But now
ret = sck.write("test data sending");
ret returned 17, cool...
But on server side, I received... nothing !?
(If I do the same thing in "pure" C socket, it works !?)
What am I doing wrong ?
Thanks for you help...
With Qt 4.8 under win32, I'm trying to send data to a tcp server
QTcpSocket sck;
sck.connectToHost(myip, 7800);
if (sck.waitForConnected(8000)==false)
return -1;
Connection works pretty well (I see it on the server)
But now
ret = sck.write("test data sending");
ret returned 17, cool...
But on server side, I received... nothing !?
(If I do the same thing in "pure" C socket, it works !?)
What am I doing wrong ?
Thanks for you help...