- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: socket_fd( (formerly decc$socket_fd) allocates...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО10-07-2010 03:31 AM
тАО10-07-2010 03:31 AM
socket_fd( (formerly decc$socket_fd) allocates a new socket fd on every call
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2010 03:36 AM
тАО10-07-2010 03:36 AM
Re: socket_fd( (formerly decc$socket_fd) allocates a new socket fd on every call
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2010 03:43 AM
тАО10-07-2010 03:43 AM
Re: socket_fd( (formerly decc$socket_fd) allocates a new socket fd on every call
From:
http://h71000.www7.hp.com/doc/82final/6529/6529pro_013.html
Here the documentation implies that there is a single descriptor assocated with each socket that is returned:
"Returns the socket descriptor associated with a Socket Device Channel (SDC) for direct use with the OpenVMS C Run-Time Library."
But here in the description it says that it creates (associates) a file descriptor:
"This function associates a valid socket channel with an HP C run-time library file descriptor, and returns the file descriptor. The file descriptor can then be used with any HP C run-time library function that takes a file descriptor or socket descriptor as an input parameter."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2010 03:52 AM
тАО10-07-2010 03:52 AM
Re: socket_fd( (formerly decc$socket_fd) allocates a new socket fd on every call
Sounds like you should call socket_fd() once and save the value.
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2010 04:13 AM
тАО10-07-2010 04:13 AM
Re: socket_fd( (formerly decc$socket_fd) allocates a new socket fd on every call
I believe the current behavior of socket_fd() is a bug because allocating a new socketfd on each call has only drawbacks with no benefits. If you could explain to me why it is useful for the function to behave this way then perhaps I would agree with you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2010 04:16 AM
тАО10-07-2010 04:16 AM
Re: socket_fd( (formerly decc$socket_fd) allocates a new socket fd on every call
The reason for the -1 return from the call is most likely the exhaustion of available descriptors.
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-08-2010 02:19 PM
тАО10-08-2010 02:19 PM
Re: socket_fd( (formerly decc$socket_fd) allocates a new socket fd on every call
the VMS channel you supply). It doesn't try to find an existing socket FD with the specified VMS channel assigned.
Are you sure you can't accomplish what need using the IO$_SETMODE|IO$M_xxxATTN functions with ASTs that fire when the channel is ready?