Open
The Open function opens connection to Internet host.
Open
name_addr, port
Parameters
-
name_addr
-
Specifies the host IP address as string like "xxx.xxx.xxx.xxx" or
host internet name (fully qualified, with domain name).
-
port
-
Specifies the port on remote host to connect to.
Return value
If successful, the function returns True. Otherwise, False. To understand the reason of
error you can use the LastError property.
Notes
The unregistered version:
Supports connection to 80 port only (HTTP)
Example
<%
Set tcpip=CreateObject("SHOTIP.Connection")
host_name="myhost.mydomain.com"
if tcpip.Open(host_name,80) then
Response.Write "The connection is opened successfully"
tcpip.Close()
else
Response.Write "The error occured!"
end if
%>