1829035 Members
2547 Online
109986 Solutions
New Discussion

Re: getsockname

 
Marco Salvi
Advisor

getsockname

I have to port a chunk of code on hpux11.23v2 (IA64).

in this code when I tried to use the sys call getsockname, it seems to succeed but in the struct sockaddr contains just 0 in all the fields.

Any idea guys?

Thanks in advance
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: getsockname

Hi Marco:

I suggest that you examine the value of 'errno'.

Regards!

...JRF...
Marco Salvi
Advisor

Re: getsockname

also if the getsockname return 0?
James R. Ferguson
Acclaimed Contributor

Re: getsockname

Hi (again) Marco:

Well, a return value of zero for getsockname() indicates a successful call so 'errno' isn't meaningful in that case.

Regards!

...JRF...
Sandman!
Honored Contributor

Re: getsockname

Since you are porting the code over to IA was it working on PARISC? Moreover the source code listing of the portion that is not working would help.

Marco Salvi
Advisor

Re: getsockname

Thanks for your answers guys.
I fix my problem using -lxnet flag
Marco Salvi
Advisor

Re: getsockname

Close