I am new to networking programming.
As far as I understand a few basic things, I imagine that if I want to use QTcpSocket objects on both (client & server) sides I have to bind&listen somehow one socket (server) and connect the second (client).
I don't want to use QTcpServer as I do not need server be able to serve more than one connection.
And now how to execute bind&listen operation using QTcpSocket methods?
I tried to connectToHost(Qt::LocalHost,port); but no matter what port I choose I receive QAbstractSocket::ConnectionRefusedError...
I will be grateful for some hints. Dare show me my mistakes if I simply don't understand well the mechanism.
Regards
Bookmarks