inet
inet copied to clipboard
UDPSocket should allow binding to port 0
We're using the following in both of the bind methods: if (lPort == 0) { auto udp = check_and_cast<UDP*>(gateToUdp->getPathEndGate()->getOwnerModule()); lPort = udp->getEphemeralPort(); }
from: http://dev.omnetpp.org/bugs/view.php?id=372
Related to #130