Qt-interest Archive, April 2007
How Could I Use MultiCast In Qt4
Message 1 in thread
Any information is appreciated
Thxs
--
[ signature omitted ]
Message 2 in thread
On Saturday 21 April 2007, Jason wrote:
> Any information is appreciated
>
> Thxs
To my knowledge, you can't. But If you're not afraid to "hack" QUdpSocket, it
is only adding 1 option. Although I'm not in favor of customizing standard
tookits, I can imagine that it is necessary.
Kind Regards.
--
[ signature omitted ]
Message 3 in thread
On Apr 20, 2007, at 10:19 PM, Jason wrote:
> Any information is appreciated
I do something like the following, for a multicast message reader:
int fd = makeMulticastSocket();
proxy_ = new QUdpSocket;
proxy_->setSocketDescriptor( fd, QUdpSocket::BoundState,
QUdpSocket::ReadOnly );
connect( proxy_, SIGNAL( readyRead() ), SLOT( socketReadyRead() ) );
The gory low-level socket connection stuff is in makeMulticastSocket
(). As a matter of fact, I use the ACE library to do all of this low-
level stuff for me, in a cross-platform way. Highly recommended.
Brad
--
[ signature omitted ]