|
On Wed, Feb 09, 2000 at 11:49:51AM -0800, mmadore wrote: > Hi, > > On Wed, 9 Feb 2000, Jason M. Felice wrote: > > > > As per your case as1 is the nikname of my AS/400. lm615 is the name of >the > > > printer for Linux lpd as well as for AS/400 print session. > > > > > > Note that I had to modify printsession.c line 94 about > > > (tn5250_print_session_main_loop): > > > > > > if (strcmp(responsecode, "I902" )) > > > > > > in > > > > > > if ( !strcmp(responsecode, "I902" )) > > > > > > In my case (tn5250-0.15.3), before the modification, the program exited > > > with the message "Could not establish printer session". > > > > The logic seems correct. Please insert the following line: > > > > TN5250_LOG (("Response Code: %s\n", responsecode)); > > > > above the strcmp, then start a print session with the -t slime.log option, > > then post what the returned reponse code was. > > The second line is the correct one. Strcmp returns 0 when it matches. > I902 is the return code for success. Jason, could you make that change? > I promise I'll read that CVS documentation soon. ;-) You're strcmp() logic is backwards, tho. You're thinking about it too hard, Mike ;-> I just went to IETF.ORG and looked for a more recent TN5250E draft. There are two other successful codes: I901 - Virtual device has less function than source device. I906 - Automatic logon requested but not allowed, sign-on will follow. There is one code which starts with an I that is an error code, I904. All other failure codes do not start with an I. The text for I904 is: I904 - Source system at incompatible release. This was in addition to two other issues, the first was that we were looking at the wrong part of the packet for the response code (it changed in 0.15.1, and this part of the code was not adjusted), and we weren't translating the response code from EBCDIC to ASCII (??? Could this have ever worked? ???). Those issues have been fixed, and we now accept all three success codes to start up. The I904 code scares me, however, because it looks like it used to be a success code at one point. If someone has an issue with the new version (0.15.7) which I will be releasing in a few minutes, please let me know. I also added a lookup table of response codes -> error text. If someone would care to internationalize tn5250 and provide translations for the error messages, that would be appreciated. (No, I'm not specifically talking to you, Gomez, but it would be nice... :) It's one of those things which I'll get to sooner or later which means never ... FYI: The newest TN5250E Internet Draft is at: http://search.ietf.org/internet-drafts/draft-ietf-tn3270e-tn5250e-05.txt -Jay 'Eraserhead' Felice +--- | This is the LINUX5250 Mailing List! | To submit a new message, send your mail to LINUX5250@midrange.com. | To subscribe to this list send email to LINUX5250-SUB@midrange.com. | To unsubscribe from this list send email to LINUX5250-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.