- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Socket implementation difference
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
Forums
Discussions
Discussions
Discussions
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
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
03-07-2005 01:27 AM
03-07-2005 01:27 AM
Socket implementation difference
Can anybody tell what are the socket implementation differences between hp 10.x and Solaris 9? Does this affect the application when I migrate from Hp to Solaris?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 02:23 AM
03-07-2005 02:23 AM
Re: Socket implementation difference
1. The socket types are equivalent except that SOCK_SEQPACKET is not implemented on HP-UX.
2. The HP-UX version of accept(), when using address family of AF_CCITT, uses an x25addrstr structure for the second argument. The SunOS version of accept() uses a CONN_DB structure for the second argument in this situation.
3. HP-UX bind() does not return errors of EISDIR, EIO, ENOENT, EROFS or ELOOP.
4. If non-blocking I/O is enabled using O_NONBLOCK, O_NDELAY, or FIOSNBIO, and the connection cannot be completed immediately, HP-UX connect() will return a status of EINPROGRESS. SunOS incorrectly blocks until the connect call completes. Your SunOS code may be assuming the connect is complete.
5. HP-UX connect() does not return errors of EACCES, EIO, ENAMETOOLONG, ENOENT, ENOTDIR, EPROTOTYPE or ELOOP.
6. setsockname(2) and getsockname(2) do not accept SunOS options SO_OOBINLINE or SO_TYPE.
7. Non-blocking reads or writes using recv(2), recvfrom(2), recvmsg(2) send(2), sendto(2), or sendmsg(2) are configured differently between SunOS and HP-UX.
*See http://www.interex.org/tech/9000/Tech/sun_hpux_port/port7.html
for more details
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 02:39 AM
03-07-2005 02:39 AM
Re: Socket implementation difference
Thanks for the information. This document I have seen already, but my doubt is that these differences are applicable for Solaris9?
Regards
Charles C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 04:30 AM
03-07-2005 04:30 AM
Re: Socket implementation difference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2005 04:02 PM
03-07-2005 04:02 PM
Re: Socket implementation difference
Can you please verify all bits.
It would be appreciate if you can provide standards (Socket) based difference also between Solaris9 and HP 10.x
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 04:47 AM
03-08-2005 04:47 AM
Re: Socket implementation difference
Tuning your Solaris 9 stack will be rather different from tuning your HP-UX 10 stack. I believe that in Solaris 9 there is still not an equivalent to the lanadmin command for link-level stats and it is still the "unsupported" netstat -k command.
If the source code to the netperf benchmark is any indication, for straightforward stuff, an application will behave just the same (ditto for HP-UX 11/11i for that matter)
Likely as not your HP-UX 10.X binaries will just run on HP-UX 11/11i - but I doubt they will run on Solaris 9 :) IIRC the compilers have differing levels of pickiness. There may be some differences simply because Solaris 9 is so much newer than HP-UX 10 - stuff like parameters to socket calls taking type socklen_t or the like.