This says the error message EVERY time, even when it is successful.
cout << "\nEnter Receiving Port";
cin >> RECEIVE_PORT;
socket.unbind();
if (!socket.bind(RECEIVE_PORT))
{
cout << "\nThere was an error binding to [" << RECEIVE_PORT << "]";
}
For instance, if I say tell it to bind to 5000, it will say it has failed, but I call socket.getLocalPort(), and it says 5000, AND I can call socket.receive(rPacket, sizeof(rPacket), sizet, RECEIVE_IP, RECEIVE_PORT) and it returns success.
So everything works, except that it claims it doesn't. What's going on?