RE: IND$FILE ????
"Rocky" <[email protected]>
| Newsgroups | gmane.comp.emulators.hercules390.vm |
|---|---|
| Message-ID | <[email protected]> |
Great - I'll take a look - Sorry but it will have to be tomorrow - I am 8 hours ahead of most of you and its almost bed time Definitel 8 hours ahead of FL. I am pretty familiar with the 3270 data stream and as I mentioned once before - In another life I wrote several 3270 emulators -- Still have most of the source code - But not the FT. But I wrote mainly on "C6' and then a bit on the first windows compilers C2 ---- This X3270 code is readable for me but I am not up to speed so any help will be greatly appreciated. That sounds about right for the routine. I dont think they went to deep into the logic and it wsnn't really necessary here I am running traces so if we have a theory I'll be able to check it out. thanks again for the offer and I i'll get back to you tomorrow. Roc _____ From: [email protected] [mailto:[email protected]] On Behalf Of Dave McGuire Sent: Thursday, August 26, 2010 19:10 To: [email protected] Subject: Re: [H390-VM] IND$FILE ???? On 8/26/10 11:22 AM, Rocky wrote: > I am looking at the C code --- > Started off with the CUT version because that is probably the easiest to understand. (and I am out of practice in "C") > > The Header file FT_CUT-DS.H seems to have most of the information about the first 6 bytes that I will need > > Still don;t see where or how the check sum is calculated but i will get there. > Any "C" gurus who want to take a gander and point me ito the right place I'll be happy Have a look at ft_cut.c at line 550. I'm looking at the sources for suite-3270 v3.3.10ga4, your line numbers may be different. In any case, the comment above the block of code reads "Compute the other fields.", in function cut_data_request(). There's a loop there that appears to calculate a trival XOR-based checksum ending up in variable "cs". I'm not 100% certain that this is what you're looking for, but I think it might be. (I've been a professional C programmer forever, but my knowledge of the 3270 protocol is nearly nonexistent!) If that is in fact the code you're looking for, let me know, and I'll be happy to annotate it line-by-line for you if that would be helpful. -Dave -- Dave McGuire Port Charlotte, FL