Avisaro Online Documentation - Wiki
Impressum Kontakt Sitemap

OUTMODE

Description

OUTMODE is an extended function of the Avisaro Scripting Language that exists to define modes for output operations such as PUT and PRINT. Currently these output modes exist:

(-1) No output. All data is thrown away.
(-2) Synchronous output to the current I/O interface. That means, PUT and PRINT wait until all data is send out. The other end can block the BASIC program if it uses some kind of flow control.
(-3) Asynchronous output to the current I/O interface. In this case, PUT and PRINT never wait and the other end cannot stop data flow. Data will be lost if the other end can't process all in time.
(0 ... 100) Any valid and open file handle. Only valid for PUT. PUT then stores its data into an open file.
(-4 ... -9) Auxiliary ports. Only valid for PUT. Data is send to the auxialiary port.
(-100 ... -105) Web Controls. Only valid for PUT. Data is then displayed on the web page.
(-101 ... - 200) TCP connections. Only valid for PUT. Data is send over a TCP connection.
(-201 ... -300) UDP channels. Only valid for PUT. Data is send over UDP.

Example

Please see other samples. Most of them use outmode to switch on terminal output.

Remarks

Any value that does not fit into the above list can cause undefined behaviour.