UDP Multicast not working

Q&A's, tips, howto's
Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

>>> pjot on Sept 3 >>>
(net-listen 4096 "226.0.0.1" "multi") => 5
(net-listen 4096 "230.1.1.20" "multi") => 6
(net-listen 4096 "233.33.33.10" "multi") => 7
>>>

This seems to work, but why would you do such a thing? several clients can talk to a server listening on one multicast address and several servers could listen on the same one multicast address already.

Lutz

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

Ha.. i was testing on 8.1.4 ;-) ...funny ;-)

Good that it works, because the concept/power of multicast lies in multicast-groups. where every group is multiple addresses.

Regards, Norman.
-- (define? (Cornflakes))

pjot
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

Post by pjot »

Hi Lutz,

More tests today with multicasting showed very good results (WinXP, Win2000). My tests between Slackware and Mandrake also were successfull.

Thank you for your good work!

Regards

Peter

pjot
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

Post by pjot »

Hi all,

I have extended the newLisp UDP chat with multicast features. Screenshots of the new version can be found at:

http://www.gtk-server.org/apps.html

-----------------------------------

Features:
- Uses extended formatting features of text_view
- Able to have UDP or MultiCast communication
- Notification if frame is lost (UDP mode)
- Communication with GTK-server is UDP also
- Fixed bug with encryption string
- Fixed bug with inserting text
- Fixed bug with getting time on Linux
- Fixed bug with sending empty strings

-----------------------------------

Enjoy!

Peter

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

Thanks Peter, how do you like the fact that newLISP now has threads using 'fork' in newlisp-8.1.7 (development directory) ? Give it a try. There are examples in the documentation.

Lutz

ps: newlisp-8.1.8 wll also have 'waitpid'

pjot
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

Post by pjot »

Hi Lutz,

Thanks for the tip, I did not notice that. This weekend I'll have a look at it!

Peter

Locked