Have you tried using QAbstractSocket::setLocalAddress()?
Have you tried using QAbstractSocket::setLocalAddress()?
Banfa (2nd June 2009)
Hmmmm, I had considered that function but the help says
Which suggested to me that this didn't effect the socket binding. I may try giving it a whirl see what happens.Originally Posted by QT Creator Help
Like I say once the network architecture is fixed the issue may not be relevant as the routing tables would take care of it all. After posting yesterday I did manage to persuade my colleagues that the planned network architecture wouldn't work.
Last edited by Banfa; 2nd June 2009 at 10:27.
I'm having the same problem too. I'm trying to make sure that the tcpsocket uses my wireless connection by setting the setLocalAddress() with my wireless ip and still it sends by the ethernet connection... If i disconnect the ehternet connection it sends on wireless...
I had to change the function setLocalAddress() in QAbstractSocket.h from protected to public otherwise using QTcpSocket wouldn't let me use the protected function, as it is not declared on QTcpSocket...
Have you found a solution to this problem?
Bookmarks