#include <rstpclientif.h>
Public Types | |
| typedef void(*) | CBFUNC (void *, const std::string &, const std::string &) |
| typedef void(*) | CBFUNC3 (void *, const std::string &) |
Public Member Functions | |
| void | addStream (const std::string &stream) |
| void | addServer (const std::string &addr, unsigned short port, unsigned int timeout=1000, const std::string &login="", const std::string &pass="") |
| void | start () |
| void | quit () |
| void | setDataCallback (CBFUNC func, void *arg=0) |
| void | setErrorCallback (CBFUNC3 func, void *arg=0) |
| bool | loadFile (const std::string &filename) |
| bool | readConfig (std::istream &fin, bool have_client_head=false) |
Static Public Member Functions | |
| static void | _data_cb (void *arg, const std::string &stream, const std::string &data) |
| static void | _error_cb (void *arg, const std::string &msg) |
| void RSTPClientIf::addServer | ( | const std::string & | addr, | |
| unsigned short | port, | |||
| unsigned int | timeout = 1000, |
|||
| const std::string & | login = "", |
|||
| const std::string & | pass = "" | |||
| ) |
| addr | Host address | |
| port | Host TCP/IP port | |
| login | Authentication credential: login/user name (if required) | |
| pass | Authentication credential: password (if required) |
| void RSTPClientIf::addStream | ( | const std::string & | stream | ) |
| stream | The stream identifier/name to add (typically a short abbreviation) |
| bool RSTPClientIf::loadFile | ( | const std::string & | filename | ) |
| filename | The name of the configuration file to load |
| void RSTPClientIf::quit | ( | ) |
| bool RSTPClientIf::readConfig | ( | std::istream & | fin, | |
| bool | have_client_head = false | |||
| ) |
| fin | istream with config data | |
| have_client_head | Mostly for internal use. True if client header already read. |
| void RSTPClientIf::setDataCallback | ( | CBFUNC | func, | |
| void * | arg = 0 | |||
| ) |
| func | The callback function | |
| arg | Optional argument to send to callback function |
| void RSTPClientIf::setErrorCallback | ( | CBFUNC3 | func, | |
| void * | arg = 0 | |||
| ) |
| func | The callback function | |
| arg | Optional argument to send to callback function |
| void RSTPClientIf::start | ( | ) |
1.4.7