Hello,
I have some problem with multicast. If I open sockets on different
groups and sockets and send with multicast to them, the results look
more like a broadcast. Disregarding the group, all client socket with
the same port get the packages. That is not the behaviour I expected.
Did I something wrong or haven't I understand the multicast
functionality ?
Bye, Carsten
===client.tcl====
package require Tnm
set c1 [udp multicast open 224.1.0.0 5678]
set c2 [udp multicast open 224.1.1.0 5678]
set c3 [udp multicast open 224.1.0.0 5679]
set c4 [udp multicast open 224.1.1.0 5679]
proc lesen {sock} {
puts "\nSocket [udp info $sock],\n\tgesendet von [join [udp receive
$sock]]"
}
foreach sock {c1 c2 c3 c4} {
udp bind [set $sock] readable "lesen [set $sock]"
}
vwait forever
=================
===server.tcl====
--package require Tnm
set s1 [udp multicast open 224.1.0.0 5678]
foreach group {224.1.0.0 224.1.1.0} {
foreach port {5678 5679} {
udp send $s1 $group $port ",\n\tgesendet an $group:$port"
}
}
=================
-
Dipl. Ing. Carsten Zerbst | See the results of the
| 1. European Tcl User Meeting !
zerbst@tu-harburg.de |
http://www.tu-harburg.de/~skfcz | http://www.tu-harburg.de/skf/tcltk
-- !! This message is brought to you via the `tkined & scotty' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>. !! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.
This archive was generated by hypermail 2b29 : Mon Jan 08 2001 - 15:27:48 MET