|
MASA-Core
|
Definition at line 41 of file MasaNetCLI.hpp.
#include <MasaNetCLI.hpp>
Static Public Member Functions | |
| static void | initialize () |
| static void | openConsole () |
| static int | cmd_connect (char *arg) |
Static Private Member Functions | |
| static char * | command_generator (const char *text, int state) |
| static char * | strip_whitespaces (char *string) |
| static command_t * | find_command (char *name) |
| static int | execute_line (char *line) |
| static char ** | console_completion (const char *text, int start, int end) |
| static void | printTopology (int type) |
| static int | cmd_help (char *arg) |
| static int | cmd_status (char *arg) |
| static int | cmd_quit (char *arg) |
| static int | cmd_show_connected (char *arg) |
| static int | cmd_show_connected_remote (char *arg) |
| static int | cmd_show_discovered (char *arg) |
| static int | cmd_show_ring (char *arg) |
| static int | cmd_create_ring (char *arg) |
| static int | cmd_test_ring (char *arg) |
Static Private Attributes | |
| static MasaNet * | masaNet = NULL |
| static command_t | commands [] |
| int MasaNetCLI::cmd_connect | ( | char * | arg | ) | [static] |
Definition at line 309 of file MasaNetCLI.cpp.
| int MasaNetCLI::cmd_create_ring | ( | char * | arg | ) | [static, private] |
Definition at line 388 of file MasaNetCLI.cpp.
| int MasaNetCLI::cmd_help | ( | char * | arg | ) | [static, private] |
Definition at line 408 of file MasaNetCLI.cpp.
| int MasaNetCLI::cmd_quit | ( | char * | arg | ) | [static, private] |
Definition at line 345 of file MasaNetCLI.cpp.
| int MasaNetCLI::cmd_show_connected | ( | char * | arg | ) | [static, private] |
Definition at line 365 of file MasaNetCLI.cpp.
| int MasaNetCLI::cmd_show_connected_remote | ( | char * | arg | ) | [static, private] |
Definition at line 372 of file MasaNetCLI.cpp.
| int MasaNetCLI::cmd_show_discovered | ( | char * | arg | ) | [static, private] |
Definition at line 376 of file MasaNetCLI.cpp.
| int MasaNetCLI::cmd_show_ring | ( | char * | arg | ) | [static, private] |
Definition at line 382 of file MasaNetCLI.cpp.
| int MasaNetCLI::cmd_status | ( | char * | arg | ) | [static, private] |
Definition at line 351 of file MasaNetCLI.cpp.
| int MasaNetCLI::cmd_test_ring | ( | char * | arg | ) | [static, private] |
Definition at line 395 of file MasaNetCLI.cpp.
| char * MasaNetCLI::command_generator | ( | const char * | text, |
| int | state | ||
| ) | [static, private] |
Definition at line 225 of file MasaNetCLI.cpp.
| char ** MasaNetCLI::console_completion | ( | const char * | text, |
| int | start, | ||
| int | end | ||
| ) | [static, private] |
Definition at line 204 of file MasaNetCLI.cpp.
| int MasaNetCLI::execute_line | ( | char * | line | ) | [static, private] |
Definition at line 129 of file MasaNetCLI.cpp.
| command_t * MasaNetCLI::find_command | ( | char * | name | ) | [static, private] |
Definition at line 164 of file MasaNetCLI.cpp.
| void MasaNetCLI::initialize | ( | ) | [static] |
Definition at line 69 of file MasaNetCLI.cpp.
| void MasaNetCLI::openConsole | ( | ) | [static] |
Definition at line 75 of file MasaNetCLI.cpp.
| void MasaNetCLI::printTopology | ( | int | type | ) | [static, private] |
Definition at line 265 of file MasaNetCLI.cpp.
| char * MasaNetCLI::strip_whitespaces | ( | char * | string | ) | [static, private] |
Definition at line 180 of file MasaNetCLI.cpp.
command_t MasaNetCLI::commands [static, private] |
{
{ "connect", MasaNetCLI::cmd_connect, "Starts a new connection with the given hostname[:port]" },
{ "show status", MasaNetCLI::cmd_status, "Shows the current connection status" },
{ "show discovered", MasaNetCLI::cmd_show_discovered, "Shows the discovered peers" },
{ "show connected", MasaNetCLI::cmd_show_connected, "Shows the connected peers" },
{ "show ring", MasaNetCLI::cmd_show_ring, "Shows the data peers in the ring" },
{ "test ring", MasaNetCLI::cmd_test_ring, "Test all the peers in the ring" },
{ "create ring", MasaNetCLI::cmd_create_ring, "Creates the buffers ring" },
{ "align local", (command_f)NULL, "" },
{ "help", MasaNetCLI::cmd_help, "Lists the commands help" },
{ "quit", MasaNetCLI::cmd_quit, "Quits the CLI" },
{ (char *)NULL, (command_f)NULL, (char *)NULL },
}
Definition at line 49 of file MasaNetCLI.hpp.
MasaNet * MasaNetCLI::masaNet = NULL [static, private] |
Definition at line 48 of file MasaNetCLI.hpp.
1.7.6.1