× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I agree, this one is totally confusing.  (1 << 0) means take the byte on the
left, and shift it's bits to the left 0 times, resulting in 1.  I would
expect

#define SSL_ENCRYPT_MASK 1
or
#define SSL_ENCRYPT_MASK 0x01

to do the exact same thing.  (0x01 meaning hex value, a little more self
documenting saying this is a bit mask).

The only thing I can think of, maybe at one time it was something like
(1<<4) or something, and kept changing 'til it became (1<<0) and was left
that way.

Regards,

Jim Langston

From: Vernon Hamberg <vhamberg@mn.mediaone.net>
Well, this one is cute. It's a bitwise shift left, meaning that the
value on the left has its bits shifted to the left the numbe of
positions on the right. This thing DOES nothing, but may have meaning in
some particualr context. I don't know enough C to tell you more.

The value is 1, probably a 4-byte integer (B9 in RPG).

Hope I'm right  ;-)

Chris Bipes wrote:
>
> I have just been asked to modify an existing socket client program to use
> SSL.  Does anyone have the C header specs converted to RPGLE and want to
> pass them along?  What is currently eluding me is a constant defined as:
> #define SSL_ENCRYPT_MASK  (1<<0)


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.