Hexillion
 

Query method

Syntax: ReplyString = Query ( QueryString )

Part Type Description
ReplyString String Response from the remote host. If an error occurs, this will be an empty string.
QueryString String Query text to send to the remote host.

This method performs a simple TCP query with text-only data.

When called, the Query method opens a TCP connection to the remote host and port specified by the RemoteAddr and RemotePort properties, respectively. Query then sends QueryString, stores the response in ReplyString, and closes the connection.

If the total time for the Query call exceeds Timeout or encounters another error, Query will return an empty string. Check the Error property for an error code.

Query handles character set conversions transparently. It internally converts QueryString from Unicode to ANSI before transmission and  converts the response back to Unicode before returning it as ReplyString. Query also converts all single CR and LF characters in the response to CRLF pairs.

Show site map

contact us    privacy policy    legal information