UDP, multicast

Pierre Sahores psahores at free.fr
Wed Jun 15 04:29:16 EDT 2011


Jan,

Interesting ! 

Thanks for the tip.

Pierre

Le 15 juin 2011 à 06:59, Jan Schenkel a écrit :

> --- On Mon, 6/13/11, Maarten Koopmans <maarten.koopmans at gmail.com> wrote:
>> Hi,
>> 
>> Is there a way to send or receive multicast in livecode? I
>> want to use that
>> with a TTL=2 so devices on the same network can discover
>> each other
>> (cross-platform).
>> 
>> Thanks,
>> 
>> Maarten
>> 
> 
> Hi Maarten,
> 
> LiveCOde has no built-in support for multicast, but you could try UDP datagram broadcasting instead. If you're looking for an implementation of Zeroconf (aka Bonjour in Apple parlance), you might consider using a separate Java process to leverage the JmDNS library.
> 
> I wrote up a blog post a while back:
> <http://quartam.blogspot.com/2011/01/zeroconfbonjour-in-livecode-with-jmdns.html>
> And I refined it slightly for my RunRevLive.11 presentation on Extending LiveCode with Java, for which you can download the source code here:
> <http://downloads.quartam.com/elcwj.zip>
> 
> Of course this won't work on a platform that lacks a Java runtime (iOS) but it's a great feature for any desktop application.
> 
> HTH,
> 
> Jan Schenkel.
> =====
> Quartam Reports & PDF Library for LiveCode
> www.quartam.com
> 
> =====
> "As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 

--
Pierre Sahores
mobile : (33) 6 03 95 77 70

www.woooooooords.com
www.sahores-conseil.com








More information about the use-livecode mailing list