Operating System - HP-UX
1834704 Members
2809 Online
110069 Solutions
New Discussion

clnttcp_create for version 11i

 
SOLVED
Go to solution
Elly Sokol
New Member

clnttcp_create for version 11i

I don't know if this is the correct forum but hope so.

We have code which uses clnttcp_create and RPC_ANYSOCK to return a socket. The 11i version says that RPC_ANYSOCK will no longer return a socket. I've looked in all the documentation and can't see the new equivalent routine to return a new socket.

Any suggestions are welcome.
Thanks
2 REPLIES 2
Brian Hackley
Honored Contributor
Solution

Re: clnttcp_create for version 11i

Elly,

This is a known issue with the clnttcp_create man page (SR 8606319551 JAGae82039:

Some of the routines described in this section (such as
clnttcp_create()) take a pointer to a file descriptor as one
of the parameters. If the user wants the file descriptor to
be a socket, then the application will have to be linked
with librpcsoc. If the user passed RPC_ANYSOCK as the file
descriptor, and the application is linked with libnsl only,
then the routine will return a TLI file descriptor and not a
socket.

NOTE: The library librpcsoc is present in its 32 bit version only.

Hope that helps, Brian Hackley
Ask me about telecommuting!
Elly Sokol
New Member

Re: clnttcp_create for version 11i

Thanks so much. We did find that library (librpcsoc) and added it to our link and sure enough it worked.