hi,
my java application needs to open the java.net.MultiCastSocket.
but while running the application on neutrino(using visula age)
it is able to instantiate MulticastSocket but it gives an error
when joinGroup method is invoked.
so i tried using full tcp/ip stack.
but full tcp/ip stack seems to fail in DatagramSocket.send()
It seems that sending packets using DatagramSocket & Multicasting is not
possible using the full TCP/IP i.e. npm-tcpip.
On tiny TCP/IP i.e. npm-ttcpip Multicasting doesn’t seem to supported but
UDP is supported…
any help will be greatly appreciated…
thanks and regards
sumukh
Multicasting requires the full stack.
You need to start your driver with the ‘multicast=1’ option:
slay io-net
io-net -ptcpip -d multicast=1
ifconfig en0 <ip_addr>
route add default <gateway_ip_addr>
After the above, ‘ifconfig en0’ should show the MCAST flag as set.
-seanb
sumukh@mahindrabt.com wrote:
: hi,
: my java application needs to open the java.net.MultiCastSocket.
: but while running the application on neutrino(using visula age)
: it is able to instantiate MulticastSocket but it gives an error
: when joinGroup method is invoked.
: so i tried using full tcp/ip stack.
: but full tcp/ip stack seems to fail in DatagramSocket.send()
: It seems that sending packets using DatagramSocket & Multicasting is not
: possible using the full TCP/IP i.e. npm-tcpip.
: On tiny TCP/IP i.e. npm-ttcpip Multicasting doesn’t seem to supported but
: UDP is supported…
: any help will be greatly appreciated…
: thanks and regards
: sumukh
hi sean,
thanx for the reply…
but still Multicasting is not working…
actually i wish to use the multicasting from target device.
thats why i created bootable floppy with
io-net -p tcpip -d speedo chipset=82558 multicast=1
i am using dhcp
i got following o/p for ifconfig
ifconfig en0
en0: flags=843<UP,BROADCAST,RUNNING,SIMPLEX>
inet 10.3.4.216 netmask 0xfffff000 broadcast 10.3.15.255
and he application which uses multicasting failed to execute.
so i tried to run that application from my pc.
again here i am giving o/p of different commands on my pc.
i am the root user.
uname -a
QNX mypc 6.00 2000/09/13-14:09:41edt x86pc x86
Then i ran following commands as per ur reply…
slay io-net
io-net -ptcpip -d speedo chipset=82558 multicast=1
but it gives following error
Unable to init dll dvn-speedo operation not supported
and it hangs.
what should be done to run the multicasting application ?
thanking in anticipation
sumukh
sumukh <nospam@newsranger.com> wrote:
: hi sean,
: thanx for the reply…
: but still Multicasting is not working…
: actually i wish to use the multicasting from target device.
: thats why i created bootable floppy with
: io-net -p tcpip -d speedo chipset=82558 multicast=1
^
If passing multiple args, you need a comma here:
io-net -p tcpip -d speedo chipset=82558,multicast=1
: ## i am using dhcp ##
: i got following o/p for ifconfig
: # ifconfig en0
: en0: flags=843<UP,BROADCAST,RUNNING,SIMPLEX>
: inet 10.3.4.216 netmask 0xfffff000 broadcast 10.3.15.255
No MCAST flag because the option wasn’t specified properly.
-seanb