Previous Topic: SOCKCLSE Macro

Next Topic: SOCKRECV Macro

SOCKCONN Macro

The SOCKCONN macro establishes a socket connection with an IP address. It is used to determine the availability of a connection.

Parameters: SOCKCONN Macro

IP Address/Host Name

Specifies the IP address or host name of the application to which you want to connect.

Port Number

Specifies the port number of the application to which you want to connect.

Wait for Connection

Specifies the time (in seconds) that you want to try to establish the connection.

Example: SOCKCONN Macro

In the following example, the SOCKCONN macro is used to connect to port number 435 at IP address 172.31.255.255. The system will wait 10 seconds for the connection.

--------- Automation Services : SOCKCONN Macro Parameter Definition ----------- Command ===> Function=UPDATE . Socket Details -------------------------------------------------------------. | | | Specify the parameters for SOCKET CONNECT: | | | | IP Address/Host Name ... 172.31.255.255_________________________________ | | | | Port Number ............ 435__ (0 - 65535) | | | | Wait for Connection .... 10_ (In seconds) | | | '-----------------------------------------------------------------------------' F1=Help F2=Split F3=OK F9=Swap F12=Cancel