How to use Bonjour in Mac and Windows

Monte Goulding monte at sweattechnologies.com
Sat Sep 28 19:46:20 EDT 2013


On 29/09/2013, at 9:43 AM, Bill Vlahos <bvlahos at mac.com> wrote:

> 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?
> 

You probably want to open process for read then read one line at a time while you are browsing

Cheers

--
Monte Goulding

M E R Goulding - software development services
mergExt - There's an external for that!








More information about the use-livecode mailing list