HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Setting timeout for client program
Operating System - HP-UX
1832143
Members
2946
Online
110038
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 08:22 AM
08-06-2002 08:22 AM
Setting timeout for client program
Hi,
I am facing a problem that my client program and server program wainting in recv statment, I came to this point due to the poor design of the server program ( the code not available ),
Any one can helping me to set the timeout of the socket (in recv mode) ?
I've not see any socket option ( setsockopt ) for that purpose !!
Thanks in advance
Majeed Lardhi
I am facing a problem that my client program and server program wainting in recv statment, I came to this point due to the poor design of the server program ( the code not available ),
Any one can helping me to set the timeout of the socket (in recv mode) ?
I've not see any socket option ( setsockopt ) for that purpose !!
Thanks in advance
Majeed Lardhi
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 08:54 AM
08-06-2002 08:54 AM
Re: Setting timeout for client program
If you don't have the code then there's probably not a lot you can do - recv() by default in blocking mode will wait as long as the connection is alive.
The normal way to enforce a timeout on a recv() call is to put the socket in non-blocking mode with fcntl() or ioctl(), then use select() with the appropriate timeout argument to determine when the socket is ready for recv'ing.
See this page for loads more info on sockets programming:
http://www.ibrado.com/sock-faq/
Regards,
Steve
The normal way to enforce a timeout on a recv() call is to put the socket in non-blocking mode with fcntl() or ioctl(), then use select() with the appropriate timeout argument to determine when the socket is ready for recv'ing.
See this page for loads more info on sockets programming:
http://www.ibrado.com/sock-faq/
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 09:03 AM
08-06-2002 09:03 AM
Re: Setting timeout for client program
Hi Steven,
I dont have the code of the server program !!!
I expect there socket option to set instead of usinf select
advise pls.
regards
I dont have the code of the server program !!!
I expect there socket option to set instead of usinf select
advise pls.
regards
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP