Operating System - HP-UX
1831162 Members
3087 Online
110021 Solutions
New Discussion

About timeout option of socket in HP-UX

 
zhang_new
New Member

About timeout option of socket in HP-UX

Our partner has developed an application in Linux environment, they want to migrate it to HP-UX. For the socket interface control, they use two options of SO_SNDTIMEO and SO_RCVTIMEO to allow the user to specify a timeout for otherwise blocking send() and recv() calls.
But they find it doesn’t work in HP-UX environment. They browse the 'System Calls of HP-UX Reference Guide', and doubt the HP-UX doesn’t support these timeouts.
Could you help to confirm it?
If HP-UX actually doesn’t support the two options, could you provide some methods to solve this problem? And the partner doesn’t want to use ‘select()’, they say, it would bring a great amount o f work to modify their application .
1 REPLY 1
Laurent Menase
Honored Contributor

Re: About timeout option of socket in HP-UX

Typically to ask for supportability ask to hp support.

the other ways to implment:
- signals not easy
- select/poll/polldev the more easy.