I am trying to generate logon mesage for user name & password, in the previous reply by dakka, I saw FAQ4.a, but I have here two message username & password which message should be returning by the function logon(), or I need to create two functions logon I am not sure please need help
FIX8::Message *myfix_session_server::generate_logon(const unsigned heartbeat_interval, const FIX8::f8String davi)
{
FIX8::Message *msg1(Session::generate_logon(heartbeat_interval, davi));
// now add your fields
string username("1441150");
*msg1 << new TEX::RawDataLength(username.size());
*msg1 << new TEX::RawData(username);
FIX8::Message *msg2(Session::generate_logon(heartbeat_interval, davi));
string password("dD0ffjb3");
*msg2 << new TEX::RawDataLength(password.size());
*msg2 << new TEX::RawData(password);
return which one msg1 or msg2;
}