2016-03-18 11:36:04 +00:00
|
|
|
{{DISPLAYTITLE:_OPENHOST}}
|
2017-10-10 14:55:21 +00:00
|
|
|
The [[_OPENHOST]] function opens a Host which listens for new connections and returns a Host status handle.
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{PageSyntax}}
|
2019-04-15 01:15:33 +00:00
|
|
|
: {{Parameter|hostHandle}} = [[_OPENHOST]]('''"TCP/IP:8080"''')
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{PageDescription}}
|
2017-10-10 14:55:21 +00:00
|
|
|
* Creates an [[ERROR Codes|Illegal Function Call]] error if called with a string argument of the wrong syntax.
|
2015-08-02 12:12:44 +00:00
|
|
|
* The port used in the syntax example is 8080.
|
2017-10-10 14:55:21 +00:00
|
|
|
* Valid {{Parameter|hostHandle}} values are negative numbers.
|
|
|
|
* If the syntax is correct but they fail to begin/connect a {{Parameter|hostHandle}} of 0 is returned.
|
2015-08-02 12:12:44 +00:00
|
|
|
* Always check if the handle returned is 0 (failed) before continuing.
|
2017-10-10 14:55:21 +00:00
|
|
|
* [[CLOSE]] {{Parameter|hostHandle}} closes the host. A failed handle value of 0 does not need to be closed.
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{PageSeeAlso}}
|
2016-03-18 11:36:04 +00:00
|
|
|
* [[_OPENCONNECTION]], [[_OPENCLIENT]]
|
|
|
|
* [[_CONNECTED]], [[_CONNECTIONADDRESS]]
|
|
|
|
* [[Email Demo]], [[Inter-Program Data Sharing Demo]]
|
2015-08-02 12:12:44 +00:00
|
|
|
* [[Downloading Files]]
|
|
|
|
|
|
|
|
|
2019-04-15 01:15:33 +00:00
|
|
|
{{PageNavigation}}
|