is there are method to force the local port number when making a tcp connection?
for example, i am connecting to an RSH service to port 514, but i need the source port to be 1023...
Qt Code:
void Process::connectToRsh() { blockSize = 0; tcpSocket->abort(); tcpSocket->connectToHost(ui.IpAddressLineEdit->text(),514); ui.ResultsTextEdit->append(tr("connecting")); }To copy to clipboard, switch view to plain text mode
So its easy to see how to connect to port 514, but what about the local one?
Thanks!
chris
Bookmarks