Difference between revisions of "MC-Basic:CONNECT"

From SoftMC-Wiki
Jump to: navigation, search
m
m
Line 21: Line 21:
  
 
|RANGE=
 
|RANGE=
<''device number''> :   1 to 255
+
<''device number''>: 1 to 255
  
<''ip address''> = IP address<br>
+
<''ip address''>: IP address<br>
  
<''port number''> = TCP port
+
<''port number''>: TCP port
  
 
|UNITS=
 
|UNITS=

Revision as of 12:47, 20 March 2014

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)

See Also