High level method that connects to a socket, sends data and receives a result then disconnects from the socket. Great for various XML services that follow a simple transaction model with a 'hit'.
The string to send to the TCP/IP server.
IP Address or domain name of the server to access.
Port on the server to use.
Timeout of the request in seconds.
Gets set with an error message if an error occurs. Pass in by reference
You don't need to call Connect() or Disconnect() when using this method.
loIP = CREATEOBJECT( "wwSocket") lcRequest = "helo rstrahl" lcError = "" *** Returns mail server hello message ? loIP.SocketSend(lcRequest,"mail.yourserver.net",25,10,@lcError)
See also:Class wwsocket
Comment or report problem with topic