[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
MultiCast Probs
From: |
christoph ganser |
Subject: |
MultiCast Probs |
Date: |
Thu, 20 Nov 2003 11:05:39 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20030925 |
Hi List
i have a little problem with multicast:
i wrote a little test application that has 2 threads, one is for
sending, the other one for receiving multicast messages:
it some how does not work.
who do i have to setup a mutlicast socket?
i use a
class MCSender : public UDPTransmit, public Thread
for sending.
in MCSender::run i
setMulticast(true)
InetMcastAddress("224.5.5.5");
Socket::join(dest);
connect(dest, 9898);
setTimeToLive(255);
const char message[] = "Hello Multicast";
transmit( (const char*) &message, strlen( (const char*) &message));
i don't get any errors (all Error == errSuccess)
but using tcpdump i only see:
messages from my host > 224.5.5.5 (DF) [ttl 1]
and
my host > ALL-ROUTERS.MCAST.NET: igmp leave 224.5.5.5 (DF) [ttl 1]
for the receiver i
class MCReceiver: public Thread, public UDPReceive
setMulticast(true)
join(dest)
if (isInputReady)
length = receive( buffer, buffer_len);
...
could any body give me a hint?
thanks for any help!
christoph
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- MultiCast Probs,
christoph ganser <=