Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WinSli32 API - SLI_OPEN fail to connect to host

Status
Not open for further replies.

cmlimnet

Programmer
Mar 7, 2002
29
IN
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.

 
You've sure chosen a difficult path for yourself if this is the first SNA program you are writing.

If I may ask, what type of application are you writing that requires this complexity? Generally, things like terminal emulators are written use LUA. Most other things can be accomplished without this level of complexity. But you may already have a good reason.

Anyway, you might want to have a look at a complete sample provided with the Host Integration Server SDK called sli3270. You can get this with the rest of the Platform SDK or on the HIS CD.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top