Hi Sir/Madam,
I have some questions to consult regarding WinSli32 SLI_OPEN API.
Below is the sample source code to connect host for a LUA application using WinSli32 for LU type 0.
other_verb.common.lua_verb = LUA_VERB_SLI;
other_verb.common.lua_opcode = LUA_OPCODE_SLI_OPEN;
other_verb.common.lua_verb_length = sizeof(struct LUA_COMMON)+ sizeof(other_verb.specific.open.lua_init_type)+
sizeof(other_verb.specific.open.lua_resv65) +
sizeof(other_verb.specific.open.lua_wait) + sizeof
(other_verb.specific.open.lua_ending_delim);
memcpy(other_verb.common.lua_luname, "LLU002 ", 8);
other_verb.common.lua_post_handle = OPENPOST;
other_verb.specific.open.lua_init_type=LUA_INIT_TYPE_SEC_LOG;
or
other_verb.specific.open.lua_init_type=LUA_INIT_TYPE_SEC_IS;
other_verb.common.lua_data_length =logon_length; //7
other_verb.common.lua_data_ptr = logon_data; //CIMEBA2
other_verb.specific.open.lua_open_extension[0].lua_routine_type = LUA_ROUTINE_TYPE_END;
SLI((LUA_VERB_RECORD FAR *) &other_verb); // Connect to host
When I am using LUA_INIT_TYPE_SEC_LOG which require a LOGON message.
I can see the LU status is changed from "AVAILABLE" to "SSCP".
But after I call the operator to issue some command at the host side,
the LU status is changed from "SSCP" to "InSession".
Then I can begin to send and receive data.
But I m not sure what is LOGON message?
Can my LUA proram connect to host and acquire the LU-LU session automatically without the operator intervention using SLI_OPEN.
When I am using LUA_INIT_TYPE_SEC_IS, I get the error message like this
"LUA PARAMETER CHECK" and further detail is "LUA INVALID OPEN DATA".
According to the documentation, this error is caused by invalid "INITSELF"
command. What is "INITSELF" command?
I really appreciate if someone can to help me.
Hope to hear any response as soon as possible.
Best regards,
Rockyu.
I have some questions to consult regarding WinSli32 SLI_OPEN API.
Below is the sample source code to connect host for a LUA application using WinSli32 for LU type 0.
other_verb.common.lua_verb = LUA_VERB_SLI;
other_verb.common.lua_opcode = LUA_OPCODE_SLI_OPEN;
other_verb.common.lua_verb_length = sizeof(struct LUA_COMMON)+ sizeof(other_verb.specific.open.lua_init_type)+
sizeof(other_verb.specific.open.lua_resv65) +
sizeof(other_verb.specific.open.lua_wait) + sizeof
(other_verb.specific.open.lua_ending_delim);
memcpy(other_verb.common.lua_luname, "LLU002 ", 8);
other_verb.common.lua_post_handle = OPENPOST;
other_verb.specific.open.lua_init_type=LUA_INIT_TYPE_SEC_LOG;
or
other_verb.specific.open.lua_init_type=LUA_INIT_TYPE_SEC_IS;
other_verb.common.lua_data_length =logon_length; //7
other_verb.common.lua_data_ptr = logon_data; //CIMEBA2
other_verb.specific.open.lua_open_extension[0].lua_routine_type = LUA_ROUTINE_TYPE_END;
SLI((LUA_VERB_RECORD FAR *) &other_verb); // Connect to host
When I am using LUA_INIT_TYPE_SEC_LOG which require a LOGON message.
I can see the LU status is changed from "AVAILABLE" to "SSCP".
But after I call the operator to issue some command at the host side,
the LU status is changed from "SSCP" to "InSession".
Then I can begin to send and receive data.
But I m not sure what is LOGON message?
Can my LUA proram connect to host and acquire the LU-LU session automatically without the operator intervention using SLI_OPEN.
When I am using LUA_INIT_TYPE_SEC_IS, I get the error message like this
"LUA PARAMETER CHECK" and further detail is "LUA INVALID OPEN DATA".
According to the documentation, this error is caused by invalid "INITSELF"
command. What is "INITSELF" command?
I really appreciate if someone can to help me.
Hope to hear any response as soon as possible.
Best regards,
Rockyu.