I saw that one, but the description didnt match what i needed, it seemed it was for something else.
How can this be useful if it does not bind the port until after the connection is established?You can call this function in a subclass of QAbstractSocket to change the return value of the localPort() function after a connection has been established. This feature is commonly used by proxy connections for virtual connection settings.
Note that this function does not bind the local port of the socket prior to a connection (e.g., QUdpSocket::bind()).
Last edited by jacek; 3rd January 2008 at 17:24. Reason: changed [code] to [quote]
also on compile:
/usr/local/Trolltech/Qt-4.3.1/include/QtNetwork/qabstractsocket.h:158: error: `void QAbstractSocket::setLocalPort(quint16)' is protected
process.cpp:26: error: within this context
make: *** [process.o] Error 1
Bookmarks