mcx::comm::AuthorizationBase

mcx::comm::AuthorizationBase

Inherits from mcx::comm::RPCProcessor

Inherited by mcx::comm::Authorization

Public Functions

Name
AuthorizationBase()
void init(uint32_t system_param_hash)
virtual bool check(RequestMsg & request_data)
virtual MsgHashSet getHashList() const override
virtual bool initLogin(const char * filename)
virtual motorcortex_StatusCode logout(uint32_t client_id)
bool noAccessMsg(ReplyMsg & reply) const

Protected Functions

Name
bool decodeRestoreSessionMsg(const RequestMsg & request, motorcortex_RestoreSessionMsg & restore_session)
bool encodeStatusMsg(const motorcortex_StatusMsg & status_msg, ReplyMsg & output_msg)
bool encodeSessionTokenMsg(const motorcortex_SessionTokenMsg & session_token, ReplyMsg & output_msg)
void generateToken(char * token, size_t length) const

Additional inherited members

Public Functions inherited from mcx::comm::RPCProcessor

Name
RPCProcessor() =default
virtual ~RPCProcessor() =default
RPCProcessor(const RPCProcessor & orig) =delete

Public Functions Documentation

function AuthorizationBase

AuthorizationBase()

function init

void init(
    uint32_t system_param_hash
)

function check

virtual bool check(
    RequestMsg & request_data
)

Reimplemented by: mcx::comm::Authorization::check

function getHashList

virtual MsgHashSet getHashList() const override

Reimplements: mcx::comm::RPCProcessor::getHashList

function initLogin

virtual bool initLogin(
    const char * filename
)

Reimplemented by: mcx::comm::Authorization::initLogin

function logout

virtual motorcortex_StatusCode logout(
    uint32_t client_id
)

Reimplemented by: mcx::comm::Authorization::logout

function noAccessMsg

bool noAccessMsg(
    ReplyMsg & reply
) const

Protected Functions Documentation

function decodeRestoreSessionMsg

static bool decodeRestoreSessionMsg(
    const RequestMsg & request,
    motorcortex_RestoreSessionMsg & restore_session
)

function encodeStatusMsg

static bool encodeStatusMsg(
    const motorcortex_StatusMsg & status_msg,
    ReplyMsg & output_msg
)

function encodeSessionTokenMsg

static bool encodeSessionTokenMsg(
    const motorcortex_SessionTokenMsg & session_token,
    ReplyMsg & output_msg
)

function generateToken

void generateToken(
    char * token,
    size_t length
) const

Updated on 2022-04-05 at 16:21:26 +0200