Eyeon:Script/Reference/Libraries/eyeon/pinghosts
From VFXPedia
Contents |
Usage
eyeon.pinghosts(string name, number timeout)
- name (string, optional)
A unique identifier for this lock.
- timeout (number, optional)
specify how long to wait for replys from hosts; the default is 1sec, but on slow networks or slow machines, replies may take longer than this, so you can raise it if need be (the eyeonscript cmd line options -p and -P use 1 sec and 10 sec for this timeout, respectively)
Returns
Returns a table containing details on Scripthosts currently available on the network.
Remarks
This function is similar to the eyeonscript command line -p option. It does a broadcast ping looking for running script hosts:
table eyeon.pinghosts([name [, time]])
By default it looks for all running script hosts, but you can limit it to a specific name (say "Fusion", or "eyeonServer", or any other string you might pass to eyeon.scriptapp).
Requirements
- eyeonScript 5.1
Examples