Connects to a socket at a given host and port.
port A long integer specifying the port number to connect to on the server machine.
localhost
). It is good practice to close the socket connection when you are finished with it.
connection=SOCKET_CONNECT('www.vni.com', 80)
connection=SOCKET_CONNECT('192.130.240.125', 1500)
connection=SOCKET_CONNECT('localhost', 1500)
connection=SOCKET_CONNECT('mymachine', 2100)
For more detailed information on using the socket routines, see Interapplication Communication Using the Socket OPI.