1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 13:50:36 +00:00
QB64-PE/internal/help/_OPENHOST.txt

28 lines
944 B
Plaintext
Raw Normal View History

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.
{{PageSyntax}}
2019-04-15 01:15:33 +00:00
: {{Parameter|hostHandle}} = [[_OPENHOST]]('''"TCP/IP:8080"''')
{{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.
* 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.
* 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.
{{PageSeeAlso}}
2016-03-18 11:36:04 +00:00
* [[_OPENCONNECTION]], [[_OPENCLIENT]]
* [[_CONNECTED]], [[_CONNECTIONADDRESS]]
* [[Email Demo]], [[Inter-Program Data Sharing Demo]]
* [[Downloading Files]]
2019-04-15 01:15:33 +00:00
{{PageNavigation}}
<