How to use Bonjour in Mac and Windows

Bill Vlahos bvlahos at mac.com
Sat Sep 28 19:43:27 EDT 2013


Monte,

Interesting. It didn't work for me running LC 6 until I used "kill". I'll double check.

Now that I can advertise the bonjour service how can I browse the network on the client? The following command works in the terminal.
> [Bill-Vlahos-Computer:~] bvlahos% dns-sd -L "Play the Game" _playbodd._tcp .
> Lookup Play the Game._playbodd._tcp.local
> DATE: ---Sat 28 Sep 2013---
> 16:25:29.827  ...STARTING...
> 16:25:36.527  Play\032the\032Game._playbodd._tcp.local. can be reached at Bill-Vlahos-Computer.local.:45567 (interface 5)
>  path=/game

I put the following script in a button but nothing gets into the field.
> on mouseUp
>      put format("dns-sd -L \"Play the Game\" _playbodd._tcp .") into sProcess
>      open process sProcess for neither
>    put the result into field "fGames"
> end mouseUp

How would I get the list of computers on the network running the server so that the client can connect to one?

Thanks again,
Bill Vlahos

On Sep 28, 2013, at 4:26 PM, Monte Goulding <monte at sweattechnologies.com> wrote:

> On 29/09/2013, at 8:42 AM, Bill Vlahos <bvlahos at mac.com> wrote:
> 
>> Monte,
>> 
>> Neat! That worked.
>> 
>> One note (which is in the docs) "close process" doesn't work on Macintosh you have to use "kill process" instead.
>> 
> Changes:
> Support for using the close process command on OS X systems was added in version 2.0.
> 
> Perhaps the doc should be updated given we can't build mac classic these days?
> 
> Cheers
> 
> --
> Monte Goulding





More information about the use-livecode mailing list