HowTo - Multicast in VASmalltalk anyone ?

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

HowTo - Multicast in VASmalltalk anyone ?

Postby marten » Tue Jul 07, 2009 11:43 pm

I'm building an application, which wants to receive messages, which other application (C# based) are sending over multicast to my subnet. Does anybody know, how to build a multicast server/client in VASMalltalk .... ???
Marten Feldtmann, Principal Smalltalk User, Private
SkypeMe callto://marten.feldtmann
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany

Re: HowTo - Multicast in VASmalltalk anyone ?

Postby marten » Wed Jul 08, 2009 4:37 am

Not defined in the Sci Constants (here the value for Windows) ... perhaps nice to add with the product

#define IP_MULTICAST_LOOP 4 /* set/get IP multicast loopback */
Marten Feldtmann, Principal Smalltalk User, Private
SkypeMe callto://marten.feldtmann
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany

Re: HowTo - Multicast in VASmalltalk anyone ?

Postby marten » Wed Jul 08, 2009 1:01 pm

marten wrote:I'm building an application, which wants to receive messages, which other application (C# based) are sending over multicast to my subnet. Does anybody know, how to build a multicast server/client in VASMalltalk .... ???


Ok - some code published at http://vastgoodies.com/maps/MSKUDPMulticast and an example at http://www.schrievkrom.de/blog/?p=539
Marten Feldtmann, Principal Smalltalk User, Private
SkypeMe callto://marten.feldtmann
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany

Re: HowTo - Multicast in VASmalltalk anyone ?

Postby marten » Wed Jul 15, 2009 1:25 pm

Perhaps some people might not have heard of "multicast". We wrote a C# application - consisting of multiple application - and all participate in a multicast group and send their application specific short data datagram. With that feature we are able to recognize our running applications (especially the servers) and application may find each other.

Be aware of routing problems using multicast.
Marten Feldtmann, Principal Smalltalk User, Private
SkypeMe callto://marten.feldtmann
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest