From: HelenMamontova <44774239+HelenMamontova@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:53:46 +0000 (+0200) Subject: Stargazer (#6) X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/ebd170a764ab9660adee464588cda1801c7986b4?ds=inline;hp=ebd170a764ab9660adee464588cda1801c7986b4 Stargazer (#6) * Radius. Block if (BUILD_MOD_RADIUS) added. * Radius. Catalog radius with radius.h and radius.cpp files added. * Declaration of methods GetVersion, SendMessage, SetUsers, Start added. * Definition of method SendMessage added. * The option for BUILD_MOD_RADIUS added. * Header files , , added. Virtual methods Start, Stop declaration added. Private methods AddUser, DelUser, GetUser, UpdateUserAuthorization added. Class member variable errorStr, users, userList, isRunning, m_conns, m_onAddUserConn, m_onDelUserConn added. * Header files , "stg/user.h" added. Overriding virtual methods Start, Stop added. * Private methods SetUserNotifiers, UnSetUserNotifiers declaration added. * Header file added. Definition methods GetUser, AddUser, DelUser, UpdateUserAuthorization added. * Unnecessary block private removed. Unnecessary header files removed. * Unnecessary methods removed. Unnecessary header files removed. * Overriding virtual methods Start, Stop, Reload, IsRunning, ParseSettings, GetStrErroor, GetStartPosition, GetStopPosition, SendMessage added. Class member variable errorStr, isRunning added. * Definition of methods Start, Stop, SendMessage removed. * Header file added. The functions PrintHelp, PrintVersion added. Parsing command line parameters added. The parameter of function settings when it call changed. * Radius. Variable bool noDaemon added. Parameter -f/--f added to parsing command line. The call of function ForkAndWait changed - it is called if the variable noDaemon is false. * Radius. Command line parameter 'path' value fixed in the function PrintHelp. Parsing command line parameters fixed. The key -f/--foreground added to parsing command line parameters. * Radius. Return value in the function GetVersion changed. * Radius. Unnecessary check 'argc = i + 2' removed from parsing command line parameters. * The macro NO_DAEMON removed. The logic driven by the macro changed to command line argument f analysis. * Radius. The check variable noDaemon added when create function call. * Radius. The variable startFile definition moved to block if(!noDaemon) in main function. ---