Difference between revisions of "OPENHOST"
Jump to navigation
Jump to search
Navigation:
imported>Clippy m |
|||
(21 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | The | + | {{DISPLAYTITLE:_OPENHOST}} |
+ | The [[_OPENHOST]] function opens a Host which listens for new connections and returns a Host status handle. | ||
+ | {{PageSyntax}} | ||
+ | : {{Parameter|hostHandle}} = [[_OPENHOST]]('''"TCP/IP:8080"''') | ||
− | + | {{PageDescription}} | |
− | + | * Creates an [[ERROR Codes|Illegal Function Call]] error if called with a string argument of the wrong syntax. | |
− | |||
− | |||
− | * Creates an | ||
* The port used in the syntax example is 8080. | * The port used in the syntax example is 8080. | ||
− | * Valid | + | * Valid {{Parameter|hostHandle}} values are negative numbers. |
− | * If the syntax is correct but they fail to begin/connect a | + | * If the syntax is correct but they fail to begin/connect a {{Parameter|hostHandle}} of 0 is returned. |
* Always check if the handle returned is 0 (failed) before continuing. | * Always check if the handle returned is 0 (failed) before continuing. | ||
− | * [[CLOSE]] | + | * [[CLOSE]] {{Parameter|hostHandle}} closes the host. A failed handle value of 0 does not need to be closed. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | {{PageSeeAlso}} | |
+ | * [[_OPENCONNECTION]], [[_OPENCLIENT]] | ||
+ | * [[_CONNECTED]], [[_CONNECTIONADDRESS]] | ||
+ | * [[Email Demo]], [[Inter-Program Data Sharing Demo]] | ||
+ | * [[Downloading Files]] | ||
− | |||
− | + | {{PageNavigation}} |
Latest revision as of 01:16, 20 April 2020
The _OPENHOST function opens a Host which listens for new connections and returns a Host status handle.
Syntax
- hostHandle = _OPENHOST("TCP/IP:8080")
Description
- Creates an Illegal Function Call error if called with a string argument of the wrong syntax.
- The port used in the syntax example is 8080.
- Valid hostHandle values are negative numbers.
- If the syntax is correct but they fail to begin/connect a hostHandle of 0 is returned.
- Always check if the handle returned is 0 (failed) before continuing.
- CLOSE hostHandle closes the host. A failed handle value of 0 does not need to be closed.
See also
- _OPENCONNECTION, _OPENCLIENT
- _CONNECTED, _CONNECTIONADDRESS
- Email Demo, Inter-Program Data Sharing Demo
- Downloading Files