- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- AST notification of socket disconnection? BGDRIVER...
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
тАО05-18-2007 08:34 AM
тАО05-18-2007 08:34 AM
If it isn't possible to get an AST, is there a call that would detect the close without doing a read/write?
I can see how to fix the problem by doing a read to generate the closed error, but that requires code changes to handle
a successful read at that point in the code.
I'm using the BGDRIVER QIO API from Basic.
Jonathan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2007 08:04 PM
тАО05-19-2007 08:04 PM
SolutionYour readattnast should fire. What do you have as socket options? (Full_duplex_close, probe_idle, drop_idle)
An alternative to a re-write of your code to cater for a successful read in the wrong place is to ucx$c_msg_peek with a readnowait. If successful the "real" read can take place unhindered at some later stage, and if the socket is closed you'll get the status from the peek.
I too have recently done QIO Socket Programming from BASIC, and strongly suggest a change of language.
Cheers Richard Maher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2007 12:13 PM
тАО05-21-2007 12:13 PM
Re: AST notification of socket disconnection? BGDRIVER QIO API
at least in my little test program. Thanks!
I don't have any problem with using QIOs in Basic
(Although I don't use the BASIC$STARLET declaration
for SY$QIO(W); declaring every parameter as "by value"
and using loc() to pass references is more flexible.)
The HP manual on the other hand, is a bit cryptic
about the item list for socket options. I had to poke around
to find examples to learn that you set an option by
pointing the item at a 1.
(And I think it was a TCPWARE BGDRIVER example...)
Jonathan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2007 01:36 PM
тАО05-21-2007 01:36 PM
Re: AST notification of socket disconnection? BGDRIVER QIO API
You do a loc(opt_on) and have opt_on declared as an integer with a value of one.
See attached.
Cheers Richard Maher
PS. Maybe it's only me that sees the perfect sense of *compile-time* initialization of these item lists and sockets?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2007 02:46 PM
тАО08-10-2007 02:46 PM
Re: AST notification of socket disconnection? BGDRIVER QIO API
Of course this only happens when using the io$m_nowait modifier to the io$_readvblk so how much trouble could it cause. . .Arrrrrgh
Regards Richard Maher
PS. If you feel that you may have been affected by the issues raised in this post then please contact you Process Software rep now!