[Qt-interest] unable to bind to limited broadcast on Mac (perror)

Lars Amsel lars.amsel at signalion.com
Tue Aug 11 17:31:15 CEST 2009


Hi,

Bart Swinnen wrote:
> I'm unable to bind a udp socket to the limited broadcast address on Mac.
> Using Qt4.5.2 sdk on Mac 10.4.11
> Is there a way to find out what error code is returned from the OS? Is 
> ti possible this address is already in use and locked by other socket on 
> the system?
> Can someone verify this problem and let me know if and how I can 
> successfully bind the socket?

I can't help you with the problem itself.

Maybe this could help you find a clue:

if (!m_udpSocket->bind(QHostAddress::Broadcast, m_udpPort)) {
   qError() << m_udpSocket->errorString();
}

regards

Lars



More information about the Qt-interest-old mailing list