Operating System - HP-UX
1833294 Members
3305 Online
110051 Solutions
New Discussion

Re: Networking problem related to getpeername

 
Sreenivas_1
Occasional Advisor

Networking problem related to getpeername

Hi
We are facing following problems while establishing TCP connection between HP-UX 11.0 ( server) and HP-UX 11.0 ( client). Following things are done
(1) Server binds to a local address eg X by calling system call 'bind'
(2) Client connects to Server by specifying server address X. When client tries to find Server address from connected socket by calling 'getpeername' , it gets different address than X.

Is this a bug in HP-UX? we tried to search HP site but could not find any bug related to this problem.
Did any one face similar situation?

Thank in advance
Regard
3 REPLIES 3
U.SivaKumar_2
Honored Contributor

Re: Networking problem related to getpeername

Hi,
Are the Normal networking services like ftp , telnet functions well in the server ?.
Are you binding the server with a IP address and also a port ?.

regards,
U.SivaKumar
Innovations are made when conventions are broken
Sreenivas_1
Occasional Advisor

Re: Networking problem related to getpeername

Thanks for the reply.
Yes, we are binding with IP and port.
Lokesh Kumar
New Member

Re: Networking problem related to getpeername

Hi,

This was a problem in sockets
code (xport) and it has been
resolved.

Try linking your binary with
"-lxnet" at compilation time
and you should see it through.

-Lokesh.