Skip to content

Commit

Permalink
removing client flags from api functions in uda plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-dixon committed Aug 7, 2024
1 parent fc7970b commit 3ad2165
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions source/plugins/uda/uda_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,29 +309,28 @@ Notes: there are three pathways depending on the request pattern
// Set Properties

CLIENT_BLOCK* client_block = idam_plugin_interface->client_block;
auto client_flags = udaClientFlags();

if (client_block->get_nodimdata) setIdamProperty("get_nodimdata", client_flags);
if (client_block->get_timedble) setIdamProperty("get_timedble", client_flags);
if (client_block->get_dimdble) setIdamProperty("get_dimdble", client_flags);
if (client_block->get_datadble) setIdamProperty("get_datadble", client_flags);
if (client_block->get_nodimdata) setIdamProperty("get_nodimdata");
if (client_block->get_timedble) setIdamProperty("get_timedble");
if (client_block->get_dimdble) setIdamProperty("get_dimdble");
if (client_block->get_datadble) setIdamProperty("get_datadble");

if (client_block->get_bad) setIdamProperty("get_bad", client_flags);
if (client_block->get_meta) setIdamProperty("get_meta", client_flags);
if (client_block->get_asis) setIdamProperty("get_asis", client_flags);
if (client_block->get_uncal) setIdamProperty("get_uncal", client_flags);
if (client_block->get_notoff) setIdamProperty("get_notoff", client_flags);
if (client_block->get_scalar) setIdamProperty("get_scalar", client_flags);
if (client_block->get_bytes) setIdamProperty("get_bytes", client_flags);
if (client_block->get_bad) setIdamProperty("get_bad");
if (client_block->get_meta) setIdamProperty("get_meta");
if (client_block->get_asis) setIdamProperty("get_asis");
if (client_block->get_uncal) setIdamProperty("get_uncal");
if (client_block->get_notoff) setIdamProperty("get_notoff");
if (client_block->get_scalar) setIdamProperty("get_scalar");
if (client_block->get_bytes) setIdamProperty("get_bytes");

// Timeout ...

// AltRank ...

// Client Flags ...

resetIdamClientFlag(client_flags, (unsigned int)CLIENTFLAG_FULLRESET);
setIdamClientFlag(client_flags, client_block->clientFlags);
resetIdamClientFlag((unsigned int)CLIENTFLAG_FULLRESET);
setIdamClientFlag(client_block->clientFlags);

// Client application provenance

Expand Down Expand Up @@ -575,7 +574,7 @@ Notes: there are three pathways depending on the request pattern
}

resetIdamPrivateFlag(PRIVATEFLAG_FULLRESET);
resetIdamClientFlag(client_flags, (unsigned int)CLIENTFLAG_FULLRESET);
resetIdamClientFlag((unsigned int)CLIENTFLAG_FULLRESET);

//----------------------------------------------------------------------
// Test for Errors: Close Socket and Free heap
Expand Down

0 comments on commit 3ad2165

Please sign in to comment.