SoDaRadio-12.2.0-cut_dependencies:6c82803
Loading...
Searching...
No Matches
CLICommand.hxx File Reference

Command parsing and command-socket I/O for SoDaCLI. More...

#include "Command.hxx"
#include "UDSockets.hxx"
#include <fstream>
#include <string>

Go to the source code of this file.

Namespaces

namespace  SoDaCLI

Functions

SoDa::CommandPtr SoDaCLI::parseCommand (const std::string &verb, const std::string &rest)
 Parse an upper-cased verb ("SET","GET","REP") and the rest of the input line into a SoDa::Command.
bool SoDaCLI::sendCommand (SoDa::UD::ClientSocket *sock, SoDa::CommandPtr cmd, std::ofstream &log)
 Transmit a command via the command socket and log it.
int SoDaCLI::receiveCommands (SoDa::UD::ClientSocket *sock, std::ofstream &log)
 Drain all pending inbound commands from the server socket, print and log each one.

Detailed Description

Command parsing and command-socket I/O for SoDaCLI.

Definition in file CLICommand.hxx.