Difference between revisions of "MC-Basic:CONNECT"

From SoftMC-Wiki
Jump to: navigation, search
m (1 revision)
m
Line 10: Line 10:
  
 
|DESCRIPTION=
 
|DESCRIPTION=
Request a TCP connection from the remote host.
+
Requests a TCP connection from the remote host.
  
Function               Request TCP connection from remote host
 
  
 
|TYPE=
 
|TYPE=
<''device number''> : Long<br>
+
<''device number''>: Long<br>
 
+
<''port number''>: Long >br
<''port number''> : Long
+
<''ip address''>: string
 
 
<''ip address''> : string
 
  
  
Line 40: Line 37:
  
 
|LIMITATIONS=
 
|LIMITATIONS=
Task only
+
*Task only
 
+
*Errors: Cannot connect
Errors                  Cannot connect
 
  
 
|EXAMPLE=
 
|EXAMPLE=

Revision as of 12:46, 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 >br <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