I have following setup
loginMsg.domainType(MMT_LOGIN).name("user").nameType(USER_NAME)
.attrib(ElementList().addAscii(ENAME_APP_ID, "127")
.addAscii(ENAME_POSITION, 127.0.0.1/net)
.addUInt(ENAME_ALLOW_SUSPECT_DATA, 0)
.addUInt(ENAME_SINGLE_OPEN, 1)
.addUInt(ENAME_ROLE, 1)
.addUInt(ENAME_DOWNLOAD_CON_CONFIG,1)
.complete());
directoryMsg.domainType(MMT_DIRECTORY).serviceName("DIRECT_FEED");
receiver = new OmmConsumer(OmmConsumerConfig().config(configMap)
.addAdminMsg(loginMsg)
.addAdminMsg(directoryMsg));
receiver->registerClient(loginMsg, (*this), closure);
receiver->registerClient(directoryMsg, (*this), closure);
Is this correct application of registerclient.
Should I add the Login Request message as AddAdminMsg and do registerclient with same message.