Re: Issue with developing client and server with OpenSSL

2003-11-23 Thread Joseph Bruni
Check out the pair of functions htonl() and ntohl() which are part of 
the sockets library. If you need to flip port numbers, you can use 
htons() and ntohs().

(By the way, your little-endian'ness is due to your x86 hardware, not 
Linux. Linux runs on big-endian systems also.)

On Nov 23, 2003, at 8:48 PM, Srilekha Krishnamurthy wrote:

But this function stores the ip address in
big endian format and I need to store this in little
endian format as it is linux box.
__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


Issue with developing client and server with OpenSSL

2003-11-23 Thread Srilekha Krishnamurthy
Hi,
   I am trying to develop a normal server and client
that communicate using SSL. I am using openSSL's SSL
library and I want the server to accept multiple
connections from the client. I am using a BIO_s_accept
bio for server and BIO_s_connect bio for client. I am
trying to set the ip at the client end using
BIO_set_ip(BIO *,String ip).
   I am running these applications on linux boxes and
I am not using DNS lookups so I need to specify the ip
address. But this function stores the ip address in
big endian format and I need to store this in little
endian format as it is linux box. I am getting the
following error
15495:error:02002065:system library:connect:Network is
unreachable:bss_conn.c:269:host=49.48.46.51:3546
15495:error:20073067:BIO routines:CONN_STATE:connect
error:bss_conn.c:273:

My actual server ip address is private 10.32.0.1.
Could someone help me with this. I have a deadline to
meet and it would be really helpful if I could get
some sample code on implementation of client and
server with openSSL or some input on how to solve my
error.
How can I access old opensslusers messages? Please
do let me know.



__
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]