RSP_parseDataNameRSP_parseData -- Creates an object for history parsing. Synopsis$pd = rsplib::RSP_parseData (host, port, timeout);
$pd = rsplib::RSP_parseData (host, port, login, password, database, timeout);
Description Creates a new structure for history parsing. The other
parsing functions must be referenced from the object
returned by this constructor. Both History Listener
and MySQL connections are possible. If only the host
port and timeout are given a History Listener connection
is assumed. If login, password and database are also
given then a MySQL connection will be made.
If host is not an IP address then a DNS lookup will be
performed.
There are three functions which will collect data.
At that time a connection will be made to the server
specified by the host and port given to this function.
The three functions are:
getHostsAndModules getKeys begin
See these functions for more details. Also remoteUseSSL
may be called to have SSL communication be used if a
History Listener connection is to be made.
Returns The module object, from which all other module functions
are referenced.
In case of error, the program will croak() with an
appriopriate message.
|