Re: IND$FILE ????
Dave McGuire <[email protected]>
| Newsgroups | gmane.comp.emulators.hercules390.vm |
|---|---|
| Message-ID | <[email protected]> |
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