Reputation: 5098
Is it possible to listen on a QTcpSocket? I have a simple p2p connection on Tcp. But i cannot find a way to start a QTcpSocket on a random free port. Should i use a QTcpServer for it, or is that a little overkill for only 1 connection?
Upvotes: 2
Views: 1502
Reputation: 21877
for listening on a port you have to use QTcpServer, checkout the socket examples.
Upvotes: 5