Sitemap Sitemap  |  Contact Us Contact Us  |  Clients Clients
   TCP/IP connections
  Home |  WebHare Lite |  Downloads |  HareScript |  Websites/CMS |  Applications
Search for:  in: 
HareScript
Internet connectivity
 
File transfer (FTP)
Hypertext transfer (HTTP)
IMAP library
MIME and RFC822
POP3 email
Simple Mail Transfer Protocol (SMTP)
TCP/IP connections
TCP/IP connections

These functions allow access to the TCP/IP functions

Use the following code in your script to load the library:

  LOADLIB "wh::internet/tcpip.whlib";

Public Functions and Macros

AcceptOnTCPSocket Accept an incoming connection on a TCP/IP socket
BindSocket Bind a TCP/IP socket to an IP address and/or a port
CloseSocket Close a TCP/IP socket and free its associated data
ConnectSocket Connect a TCP/IP socket to an IP address and/or a port
CreateTCPSocket Create a new TCP socket
CreateUDPSocket Create a new UDP socket
GetHostNameFromURL Derive the hostname from a URL
GetLastSocketError Get the last error on a TCP/IP socket
GetLocalSocketIP GetLocalIP is used to get the local IP address from an open connection
GetLocalSocketPort GetLocalPort is used to get the local port number from an open connection
GetPathFromURL Get the path from a URL
GetPortFromURL Derive the port number from a url
GetRemoteSocketIP GetRemoteIP is used to get the remote ip address from an open connection
GetRemoteSocketPort GetRemotePort is used to get the remote port number from an open connection
GetSocketErrorText Convert a TCP/IP socket error to text
GetSystemHostName Get the system's host name
IsValidHostName Check if a hostname is valid
IsValidIPAddress Is a string a valid IP address?
ListenOnTCPSocket Listen on a TCP/IP sockets for incoming connections
PrettyIPMask Convert standardized mask to a pretty IP mask
ReadFromSocket Receive is used to receive data from a socket
ResolveHostname Resolve a hostname to an IP address
ResolveIPAddress Resolve an IP address to a hostname
SetSecureConnection Make a current TCP connection secure using SSL
SetSocketTimeout Set the timeout used for sending and receiving calls
StandardizeIPMask Convert IP address to standardized mask
UDPReceive UDPReceive is used to receive a datagram over UDP
UDPSend UDPSend is used to send a datagram over UDP
 
Top To top of page