HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- TCPIP buffer problem?
Operating System - OpenVMS
1827496
Members
2745
Online
109965
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
Go to solution
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
06-22-2004 09:32 PM
06-22-2004 09:32 PM
Re: TCPIP buffer problem?
It's been some time I played with a C compiler, but there are functions like:
http://www.opengroup.org/onlinepubs/009695399/functions/strerror.html
http://www.opengroup.org/onlinepubs/009695399/functions/perror.html
http://www.opengroup.org/onlinepubs/009695399/functions/strerror.html
http://www.opengroup.org/onlinepubs/009695399/functions/perror.html
.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2004 10:50 PM
06-22-2004 10:50 PM
Re: TCPIP buffer problem?
(this tends to get off-topic....)
Uwe,
Thanks for these links, but getting the message string isn't the real point. I would like to be able to do something like:
if lib$machc_cond (errval, TCPIP_WOULDBLOCK)
that requires errval to contain a full, VMS-like returnstatus (32 bit, format: Facility/Number/Severity.
Number could well be 35 - the value of errno, being EWOULDBLOCK.
Of course I could do
if (errno == EWOULDBLOCK)
but I'm programming on VMS, not Unix!
(Like a lot of things in CRTL, the behaviour could be controlled with some DECC$-logical)
OpenGroup = Unix. They should be looking more widely!
Willem
Uwe,
Thanks for these links, but getting the message string isn't the real point. I would like to be able to do something like:
if lib$machc_cond (errval, TCPIP_WOULDBLOCK)
that requires errval to contain a full, VMS-like returnstatus (32 bit, format: Facility/Number/Severity.
Number could well be 35 - the value of errno, being EWOULDBLOCK.
Of course I could do
if (errno == EWOULDBLOCK)
but I'm programming on VMS, not Unix!
(Like a lot of things in CRTL, the behaviour could be controlled with some DECC$-logical)
OpenGroup = Unix. They should be looking more widely!
Willem
Willem Grooters
OpenVMS Developer & System Manager
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2004 11:49 PM
06-22-2004 11:49 PM
Re: TCPIP buffer problem?
I doubt something like the attached make you more happy. It is just numbers and the errno value does not have a severity anyway, so you can even save a function call by doing a direct compare against EWOULDBLOCK.
.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2004 01:01 AM
06-23-2004 01:01 AM
Re: TCPIP buffer problem?
Uwe,
Suppose the program used SYS$QIO in stead of plain Unix-like socket access. I doubt it would return '35' in IOSB for cases like this. No doubt there is a plain VMS alternative.
OTOH - since socket programming IS unix-like (VMS _would_ use SYS$QIO instead) there is something to say to do a direct compare, the Unix way. Why not either one OR the other, the same way CTRL is taking care...
For this thread, it's not the point. The problem IS solved another way, and any error IS an error. send should succeed.
Willem
Suppose the program used SYS$QIO in stead of plain Unix-like socket access. I doubt it would return '35' in IOSB for cases like this. No doubt there is a plain VMS alternative.
OTOH - since socket programming IS unix-like (VMS _would_ use SYS$QIO instead) there is something to say to do a direct compare, the Unix way. Why not either one OR the other, the same way CTRL is taking care...
For this thread, it's not the point. The problem IS solved another way, and any error IS an error. send should succeed.
Willem
Willem Grooters
OpenVMS Developer & System Manager
OpenVMS Developer & System Manager
- « Previous
-
- 1
- 2
- Next »
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP