I have the following code in my application:
int inputPort = 50002; int outputPort = 50001; bool inBound = inputSocket.bindToPort (inputPort); bool outBound = outputSocket.bindToPort (outputPort); int inReady = inputSocket.waitUntilReady(true, 5000); int outReady = outputSocket.waitUntilReady(false, 5000);
The value of inReady is always 0, while the value of outReady is always 1, even if I swap the port numbers. What could be the reason? I am on Ubuntu.