Difference between revisions of "MC-Basic:OPENSOCKET"
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| + | {{Languages|MC-Basic:OPENSOCKET}} | ||
{{MC-Basic | {{MC-Basic | ||
|SHORT FORM= | |SHORT FORM= | ||
| Line 20: | Line 21: | ||
|RANGE= | |RANGE= | ||
| − | Options: 0: data is buffered until buffer | + | 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. | 1: NO_DELAY. Send data immediately. | ||
| Line 51: | Line 52: | ||
* [[MC-Basic:CONNECT|CONNECT]] | * [[MC-Basic:CONNECT|CONNECT]] | ||
* [[MC-Basic:ACCEPT|ACCEPT]] | * [[MC-Basic:ACCEPT|ACCEPT]] | ||
| − | * [[ | + | * [[MC-Basic:PING|PING]] |
}} | }} | ||
Latest revision as of 05:32, 25 April 2017
| Language: | English • 中文(简体) |
|---|
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