- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: TCPWARE select() replacement.
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
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
тАО09-10-2008 02:34 PM
тАО09-10-2008 02:34 PM
TCPWARE select() replacement.
DEC AXPVMS TCPIP V5.4-15
Compaq C V6.4-008 on OpenVMS Alpha V7.3-2
I am trying to use select() in my C program
with a socket operation on non-socket.
I have read on the Internet talking about
just this problem. Was looking to see if a replacement option was available or code snipit would provide a workaround for this limitation.
Would like to keep the code able to work on UNIX/OpenVMS. But wanted to see if other options where availble instead of a separate section of code just for OpenVMS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-10-2008 03:57 PM
тАО09-10-2008 03:57 PM
Re: TCPWARE select() replacement.
The usual approach here tends to involve threads, if you need/want portable C code. The select call itself isn't fully portable.
OpenVMS-native code often uses ASTs.
Or you conditionalize the I/O to the platform.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-10-2008 04:13 PM
тАО09-10-2008 04:13 PM
Re: TCPWARE select() replacement.
the native AST stuff.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-10-2008 05:11 PM
тАО09-10-2008 05:11 PM
Re: TCPWARE select() replacement.
Depending upon what the non-socket channel is it may be possible to write a vms_select function that looks at the type of device behind the channel and does the appropriate sensing. Mailboxes have attention ASTs that are very similar to network attention ASTs. Terminals are harder, but can be done with an associated mailbox. I'm not sure how I would do it with a file though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-10-2008 07:42 PM
тАО09-10-2008 07:42 PM
Re: TCPWARE select() replacement.
Yes, I was wanting to make a vms_select()
Would be nice if a code snippit of it was
hanging around some where on the internet.
Thanks for the pointers. See what I can come up with.