Difference between revisions of "MC-Basic:CONNECT"
Line 1: | Line 1: | ||
+ | {{Languages|MC-Basic:CONNECT}} | ||
{{MC-Basic | {{MC-Basic | ||
|SHORT FORM= | |SHORT FORM= |
Revision as of 07:28, 3 May 2017
Language: | English • 中文(简体) |
---|
Requests a TCP connection from the remote host.
Syntax
Connect(#<device number>, <ip address>,<port number>)
Type
<device number>: Long
<port number>: Long
<ip address>: string
Range
<device number>: 1 to 255
<ip address>: IP address
<port number>: TCP port
Scope
Task
Limitations
- Task only
- Errors: Cannot connect
Examples
Connect(#1,”212.25.84.109”,65456)