11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

The following table describes the available options (case-sensitive) for<br />

getSocketOptions().<br />

1-310 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

socket_handle The socket handle from openSocket(), acceptSocket(), or<br />

initServerSocket().<br />

options A Dynamic Array containing information about the socket options and<br />

their current settings. When querying for options, the dynamic array is<br />

configured as:<br />

optName1<br />

optName2<br />

optName...<br />

When the options are returned, the dynamic array is configured as:<br />

optName1optValue1a[optValue1b]<br />

optName2optValue2a[optValue2b]<br />

optName3...<br />

Where optName contains an option name string listed below. The first<br />

optValue describes if the option is ON or Off and must be one of two<br />

possible values: “1” for ON or “2” for OFF. The second optValue is<br />

optional and may hold additional data for a specific option. Currently,<br />

for option “LINGER”, it contains the delayed time (in milliseconds)<br />

before closing the socket.<br />

getSocketOptions Parameters<br />

Option Description<br />

DEBUG Enable/disable recording of debug information.<br />

REUSEADDR Enable/disable the reuse of a location address (default).<br />

KEEPALIVE Enable/disable keeping connections alive.<br />

DONTROUTE Enable/disable routing bypass for outgoing messages.<br />

LINGER Linger on close if data is present.<br />

getSocketOptions Options

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!