On Thu, 9 Oct 2008 06:03:44 -0700 (PDT), Stodge <stodge@gmail.c omwrote:
Your server and client are both listening on the multicast address
224.0.0.1. Traffic sent to that address will be delivered to both
of them. If you want to send something to all clients listening on
that address, then that's the address to pass to transport.write .
Jean-Paul
[snip]
>class MulticastServer UDP(DatagramPro tocol):
def startProtocol(s elf):
print 'Started Listening'
# Join a specific multicast group, which is the IP we will
>respond to
self.transport. joinGroup('224. 0.0.1')
>
[snip]
>
>class MulticastClient UDP(DatagramPro tocol):
def startProtocol(s elf):
print 'Started Listening'
# Join a specific multicast group, which is the IP we will
>respond to
self.transport. joinGroup('224. 0.0.1')
>
[snip]
>
>No surprises there! But how do I get the server to send to all clients
>using multicast? transport.write requires an address. Any suggestions
>appreciated.
>class MulticastServer UDP(DatagramPro tocol):
def startProtocol(s elf):
print 'Started Listening'
# Join a specific multicast group, which is the IP we will
>respond to
self.transport. joinGroup('224. 0.0.1')
>
[snip]
>
>class MulticastClient UDP(DatagramPro tocol):
def startProtocol(s elf):
print 'Started Listening'
# Join a specific multicast group, which is the IP we will
>respond to
self.transport. joinGroup('224. 0.0.1')
>
[snip]
>
>No surprises there! But how do I get the server to send to all clients
>using multicast? transport.write requires an address. Any suggestions
>appreciated.
224.0.0.1. Traffic sent to that address will be delivered to both
of them. If you want to send something to all clients listening on
that address, then that's the address to pass to transport.write .
Jean-Paul
Comment