#include <CmdClient.h>
Inheritance diagram for CmdClient:
Public Member Functions | |
CmdClient () | |
~CmdClient () | |
void | startClient (const string &host, int portVal, int timeout) |
void | startClient (const string &unixSocket, int timeout) |
void | shutdownClient () |
void | setOutput (ostream *strm, bool created) |
void | executeClientCommand (const string &cmd) |
Executes a client side command. | |
void | executeCommand (const string &cmd) |
void | executeCommands (const string &cmd_list) |
void | executeCommands (ifstream &inputFile) |
void | interact () |
bool | isConnected () |
void | brokenPipe () |
virtual void | dump (ostream &strm) const |
dumps information about this object |
Requests to the OpenDAP server can be taken in different ways by the CmdClient object.
Response from the requests can sent to any File or OutputStream as specified by using the setOutput methods. If no output is specified using the setOutput methods thent he output is ignored.
Thread safety of this object has not yet been determined.
|
|
|
|
|
|
|
dumps information about this object Displays the pointer value of this instance
Implements BESObj. |
|
Executes a client side command. Client side commands include client suppress; client output to screen; client output to <filename>;
|
|
Sends a single OpeNDAP request ending in a semicolon (;) to the OpeNDAP server. The response is written to the output stream if one is specified, otherwise the output is ignored.
|
|
Sends the requests listed in the specified file to the BES server, each command ending with a semicolon. The requests do not have to be one per line but can span multiple lines and there can be more than one command per line. The response is written to the output stream if one is specified, otherwise the output is ignored.
|
|
Execute each of the commands in the cmd_list, separated by a * semicolon. The response is written to the output stream if one is specified, otherwise the output is ignored.
|
|
An interactive BES client that takes BES requests on the command line. There can be more than one command per line, but commands can NOT span multiple lines. The user will be prompted to enter a new BES request. OpenDAPClient: The response is written to the output stream if one is specified, otherwise the output is ignored.
|
|
|
|
Set the output stream for responses from the BES server. Specify where the response output from your BES request will be sent. Set to null if you wish to ignore the response from the BES server.
|
|
Closes the connection to the OpeNDAP server and closes the output stream.
|
|
Connect the BES client to the BES server using the unix socket Connects to the BES server using the specified unix socket
|
|
Connect the BES client to the BES server. Connects to the BES server on the specified machine listening on the specified port.
|