mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-16 12:04:06 +00:00
aeb9c0668b
Note: Many files were removed (not yet existing/empty pages). The parser will try to download them on demand and will auto-generate text for missing pages (eg. most _gl pages).
29 lines
989 B
Text
29 lines
989 B
Text
{{QBDLDATE:05-20-2022}}
|
|
{{QBDLTIME:23:09:46}}
|
|
{{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.
|
|
* The port used in the syntax example is 8080.
|
|
* 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.
|
|
* [[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}}
|
|
|