How to use Bonjour in Mac and Windows

Monte Goulding monte at sweattechnologies.com
Sat Sep 28 23:50:56 EDT 2013


On 29/09/2013, at 1:12 PM, Bill Vlahos <bvlahos at mac.com> wrote:

> Here is the terminal output:
>> 
>> [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
> 
> When I execute this in LiveCode, the result returns, "process is not open for read".
>>   put format("dns-sd -L \"Play the Game\" _playbodd._tcp .") into sProcess
>>   open process sProcess for text read
>>   read from process sProcess until "path=" in 400 milliseconds
>>   put the result into field "fGames"
> 
> If I comment the "read from process…" line the result is that the process is open.
> 
> Any ideas why?

Have you checked if it's already open? Use the openProcesses

--
Monte Goulding

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








More information about the use-livecode mailing list