Mats Stijlaart
Mats Stijlaart

Reputation: 5098

QTcpSocket listen

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

Answers (1)

Talespin_Kit
Talespin_Kit

Reputation: 21877

for listening on a port you have to use QTcpServer, checkout the socket examples.

Upvotes: 5

Related Questions