proxy Class Reference
[Proxy]
Instanced the multicast proxy.
#include "proxy.hpp"
Public Member Functions | |
void | end () |
string | get_state_table () |
bool | init (int arg_count, char *args[]) |
proxy () | |
bool | start () |
~proxy () |
Constructor & Destructor Documentation
proxy::proxy | ( | ) |
Set default values of the class members and add signal handlers for the signal SIGINT and SIGTERM.
References HC_LOG_TRACE.
proxy::~proxy | ( | ) |
Release all resources and restore reverse path flags if changed.
References HC_LOG_TRACE.
Member Function Documentation
void proxy::end | ( | ) |
Stop the proxy.
References worker::add_msg(), proxy_msg::EXIT_CMD, timing::getInstance(), routing::getInstance(), HC_LOG_DEBUG, HC_LOG_TRACE, timing::join(), worker::join(), receiver::join(), timing::stop(), receiver::stop(), and proxy_msg::type.
Referenced by test_mcproxy().
string proxy::get_state_table | ( | ) |
Return readable state table information.
References HC_LOG_ERROR, and HC_LOG_TRACE.
Referenced by test_mcproxy().
bool proxy::init | ( | int | arg_count, | |
char * | args[] | |||
) |
initialize the proxy
- Parameters:
-
arg_count Number of passed parameter. args Passed parameter
Usage: mcproxy [-h] [-f] [-d] [-s] [-v [-v]] [-c <configfile>]
-h Display this help screen. -f Reset the reverse path filter flag, to accept data from foreign Subnets. -d Run in debug mode. Output all log messages on thread[X] file. -s Print proxy status information. -v Be verbose. Give twice to see even more messages -c To specify the configuration file.
- Returns:
- Return true on success.
References timing::getInstance(), routing::getInstance(), HC_LOG_ERROR, HC_LOG_TRACE, routing::init(), receiver::init(), timing::start(), worker::start(), and receiver::start().
Referenced by test_mcproxy().
bool proxy::start | ( | ) |
Start the proxy.
- Returns:
- Return true on success.
References config_msg::ADD_DOWNSTREAM, check_if::check(), proxy_msg::CONFIG_MSG, proxy_msg::DEBUG_MSG, config_msg::DEL_DOWNSTREAM, debug_msg::get_debug_msg(), HC_LOG_ERROR, HC_LOG_TRACE, check_if::init(), debug_msg::join_debug_msg(), debug_msg::MORE, debug_msg::MORE_MORE, proxy_msg::msg, debug_msg::NORMAL, PROXY_DEBUG_MSG_TIMEOUT, check_if::swap_to_down(), check_if::swap_to_up(), and proxy_msg::type.
Referenced by test_mcproxy().