fgms 0.11.8
The
FlightGear MultiPlayer Server
project
LIBCLI Namespace Reference

Classes

class  arg_error
 
class  CLI
 
class  Client
 
class  Command
 
class  CommandBase
 
struct  filter_cmds_t
 
class  filter_t
 
class  match_filter_state
 
class  mem_error
 
class  range_filter_state
 

Typedefs

typedef int(Client::* filter_callback_func) (char *cmd, void *data)
 

Enumerations

enum  CLI_STATES {
  STATE_LOGIN, STATE_PASSWORD, STATE_NORMAL, STATE_ENABLE_PASSWORD,
  STATE_ENABLE
}
 
enum  MATCH_MODE { MATCH_NORM = 0, MATCH_INVERT = 2 }
 
enum  MODE { MODE_ANY = -1, MODE_EXEC = 0, MODE_CONFIG = 1 }
 
enum  PRINT_MODE { PRINT_PLAIN = 0x00, PRINT_FILTERED = 0x01 }
 
enum  PRIVLEVEL { UNPRIVILEGED = 0, PRIVILEGED = 15 }
 
enum  RETURN_CODES { OK = 0, ERROR_ANY = -1, QUIT = -2, ERROR_ARG = -3 }
 

Functions

Clientcommit (Client &out)
 
ClientCRLF (Client &out)
 
ClientUNFILTERED (Client &out)
 

Variables

const string DES_PREFIX = "{crypt}"
 
filter_cmds_t filter_cmds []
 
const int MAX_HISTORY = 256
 
const string MD5_PREFIX = "$1$"
 

Typedef Documentation

typedef int(Client::* LIBCLI::filter_callback_func) (char *cmd, void *data)

Definition at line 34 of file filter.hxx.

Enumeration Type Documentation

Enumerator
STATE_LOGIN 
STATE_PASSWORD 
STATE_NORMAL 
STATE_ENABLE_PASSWORD 
STATE_ENABLE 

Definition at line 74 of file common.hxx.

Enumerator
MATCH_NORM 
MATCH_INVERT 

Definition at line 68 of file common.hxx.

Enumerator
MODE_ANY 
MODE_EXEC 
MODE_CONFIG 

Definition at line 55 of file common.hxx.

Enumerator
PRINT_PLAIN 
PRINT_FILTERED 

Definition at line 62 of file common.hxx.

Enumerator
UNPRIVILEGED 
PRIVILEGED 

Definition at line 49 of file common.hxx.

Enumerator
OK 
ERROR_ANY 
QUIT 
ERROR_ARG 

Definition at line 41 of file common.hxx.

Function Documentation

Variable Documentation

const string LIBCLI::DES_PREFIX = "{crypt}"

Definition at line 1279 of file libcli.cxx.

Referenced by LIBCLI::CLI::pass_matches().

filter_cmds_t LIBCLI::filter_cmds[]
Initial value:
=
{
{ "begin", "Begin with lines that match" },
{ "between", "Between lines that match" },
{ "count", "Count of lines" },
{ "exclude", "Exclude lines that match" },
{ "include", "Include lines that match" },
{ NULL, NULL}
}

Definition at line 57 of file libcli.cxx.

Referenced by LIBCLI::CLI::find_command(), and LIBCLI::CLI::get_completions().

const int LIBCLI::MAX_HISTORY = 256
const string LIBCLI::MD5_PREFIX = "$1$"

Definition at line 1280 of file libcli.cxx.

Referenced by LIBCLI::CLI::pass_matches().