Code Monkey home page Code Monkey logo

ossnacclient's People

Contributors

ahnbc00 avatar dainchoi-hunesion avatar danmured avatar dnyang72 avatar eunah0707 avatar formerlymisterfriese avatar hns10109 avatar huneopenup avatar leejekyoung avatar pcw109550 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ossnacclient's Issues

About commented codes

I found that there are some commented codes without any explanation in "nacapplication.cpp". So, I suggest writing some comments about those codes. (or removing them if they are no longer used)

Hune::Core::hune_core_init();
hune_event_callback_init();
// ftc_dbus_server_init();
//g_action_map_add_action_entries(G_ACTION_MAP(app), app_entries, G_N_ELEMENTS(app_entries), app);
gtk_application_set_accels_for_action(GTK_APPLICATION(app), "app.quit", quit_accesls);

Also, there are some commented debugging codes in "main.cpp". I also suggest using some other method to disable debug codes (e.x. #ifdef) instead of commenting them out.
//HUNE_LOG("Main Application Started");
app = nac_application_new();
if (app == NULL) return rv ;
rv = g_application_run(G_APPLICATION (app), argc, argv);
g_object_unref(app);
//HUNE_LOG("Main Application End");

Mixed usage of NULL and nullptr

I found that there are some files are using NULL for assigning null to pointers and some files are using nullptr for it. Moreover, It seems that "DirectoryMonitor.cpp" uses both two methods in one code.

DmParam *dmParam = NULL;
if (! eventMgr) {
return;
}
dmParam = new (std::nothrow) DmParam();
if (!dmParam) {
return;
}
dmParam->dir = this->_dir;
dmParam->filename = event->name;
dmParam->mask = event->mask;
dmParam->userData = this->_userData;
eventMgr->dispatchEventAsync(this->_eventName.c_str(), dmParam, [](void *data) {
if (data) {
DmParam *param = (DmParam*)data;
delete param;
param = nullptr;

Therefore, I suggest using consistent method for assigning null to pointer.

Suggestion to avoid C style casting

For more efficient code maintenance, I recommend to avoid C style casting (such as (struct struct_name *) void_ptr)

There are several reasons why C++ style casting should be used instead of C style casting. (Also mentioned in #56 too)

  • C style castings are not checked at compile time and therefore causes some problem on runtime (And they are usually hard to debug)
  • C++ style castings enhance the readability of the entire code by enabling searching code snippets by the common postfix _cast.
  • C++ style castings support more precise casting, based on the context.

Suggestions for NAC end-user status classification

Suggestions for NAC ㄸnd-user status classification

-Can the NAC server distinguish the current End-user state?
-In other words, it would be nice if the server could check if the NAC Agent was installed on the End-user's PC.

Consider scalability for INIManager

Configuration files must be encrypted and stored locally.
Currently, INIManager does not consider encryption.
Please consider the scalability of INIManager to encrypt the configuration file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.