As for Linux, you can query /proc or /sys for the number of allowed file descriptors per process. As for other OSes, I have no idea. Do you really need such a large number of sockets?
You can access the error from the regular socket (See QAbstractSocket::error ()).QTcpServer does not seem to have any onError signals :-(
Bookmarks