MC-Basic:OPENSOCKET

From SoftMC-Wiki
Revision as of 12:10, 20 September 2016 by Ron (talk | contribs) (grammar fix)
Jump to: navigation, search

Creates a TCP socket and put socked descriptor to the specified device handle.

Syntax

OpenSocket Options=<num> as # <device number>

Type

Options  : Long

<device number> : Long

Range

Options:       0: data is buffered until buffer is full or time-out is reached, this mode shall be used to improve network utilization

1: NO_DELAY. Send data immediately.

<device number> :   1 to 255

Default

Options:       0

Scope

Task/Terminal

Limitations

Errors:                 Could not create socket.

Invalid options.

Examples

OpenSocket Options=1 as #1

See Also