PDA

View Full Version : QTcpSocket



pdoria
16th July 2009, 17:38
Hi,

Is it possible to the the broadcast address from a connected socket?

I mean, I can get the peer Address using QAbstractSocket::peerAddress () but AFAICS there's no way to get the broadcast address...

Already thankful for any information,
Best regards,
Pedro Doria Meunier

aamer4yu
16th July 2009, 17:52
As far as I know,, broadcast address is one only 255.255.255.255 ?
I am not sure what you want. But the Broadcast Sender (http://doc.qtsoftware.com/4.5/network-broadcastsender.html) and Broadcast receiver (http://doc.qtsoftware.com/4.5/network-broadcastreceiver.html) examples might give you some idea.