beautypg.com

Reference – ClearOne Writing StreamNet User Manual

Page 31

background image

9-1

All specifications subject to change without notification. All rights reserved. Copyright © 2007 NetStreams

Main +1 512.977-9393 / fax +1 512.977.9398 / Toll Free Technical Support +1 866-353-3496

3600 W. Parmer Lane, Suite 100; Austin, TX 78727 /

www.netstreams.com.

Chapter

9

Reference

This section defines the StreamNet extensions to the standard Lua function calls
defined in the Lua manual, which can be found at

http://www.lua.org/manual/5.1/.

Syntax

In the descriptions below, the following notations are used:



aType =

indicates that the function returns an item of the indicate type, or that a
variable is of the indicated type



aType:

indicates the indicated function should be invoked or defined with the
“:” operator as the “self” argument of type “aType” must always be
given.



aType. indicates the standard lua table lookup rules apply

Control

For purposes of simplicity, all the basic control functions are directly defined in the
outer scope of a Lua driver. In most cases, the only required entries here are the
handle_command entries necessary to handle the commands important to the driver
itself.

default_handle_command (command)

default_handle_command is the last effort command handler and is used only if there
is no handle_command function defined to specifically handle a given command.