HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Connld functionality on HP-UX
Operating System - HP-UX
1833757
Members
2888
Online
110063
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
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
09-29-2004 03:36 AM
09-29-2004 03:36 AM
Connld functionality on HP-UX
Hello,
I have a situation where a customer is migrating from SUN to HP-UX and is struck with porting the functionality of "connld" streams module onto HP-UX.
Since, HP-UX doesnt support "connld" module, is there any workaround or a solution to address this scenario.
Basically the application is like this...
---
int ServListen( const char *name)
{
int tempfd, fd[2] ;
unlink(name);
if( (tempfd = creat(name, FIFOMODE)) <0 ) return(-1);
if( close(tempfd) <0 ) return(-2);
if( pipe(fd) <0 ) return(-3);
if( ioctl(fd[1], I_PUSH,"connld") < 0 ){
printf("errno %d",errno);
return(-4);
}
if( fattach(fd[1], name) <0 ) return(-5) ;
return(fd[0]);
}
*************
Server waiting to connect:
*************
int ServAccept(int listenfd)
{
struct strrecvfd recvfd ;
if( ioctl(listenfd, I_RECVFD, &recvfd)
<0 ) return(-1);
return( recvfd.fd);
}
Thanks in advance.
Regards,
Sri Ram
I have a situation where a customer is migrating from SUN to HP-UX and is struck with porting the functionality of "connld" streams module onto HP-UX.
Since, HP-UX doesnt support "connld" module, is there any workaround or a solution to address this scenario.
Basically the application is like this...
---
int ServListen( const char *name)
{
int tempfd, fd[2] ;
unlink(name);
if( (tempfd = creat(name, FIFOMODE)) <0 ) return(-1);
if( close(tempfd) <0 ) return(-2);
if( pipe(fd) <0 ) return(-3);
if( ioctl(fd[1], I_PUSH,"connld") < 0 ){
printf("errno %d",errno);
return(-4);
}
if( fattach(fd[1], name) <0 ) return(-5) ;
return(fd[0]);
}
*************
Server waiting to connect:
*************
int ServAccept(int listenfd)
{
struct strrecvfd recvfd ;
if( ioctl(listenfd, I_RECVFD, &recvfd)
<0 ) return(-1);
return( recvfd.fd);
}
Thanks in advance.
Regards,
Sri Ram
"What goes up must come down. Ask any system administrator."
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 03:42 AM
09-29-2004 03:42 AM
Re: Connld functionality on HP-UX
Hi Sri,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=701680
Manish had the same question a few weeks ago, unfortunatly no answer.
Regards,
Robert-Jan
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=701680
Manish had the same question a few weeks ago, unfortunatly no answer.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 06:31 AM
09-29-2004 06:31 AM
Re: Connld functionality on HP-UX
Hello Ram,
It is still true that connld is not on any HPUX release.
Regarding the support of connld in HPUX, this functionality is currently not included in the STREAMS product J2237A, nor is it planned in any future release at this time.
A Streams-based substitute for connld would be for you to write the program using Unix Domain Sockets instead of stream-based pipes. With Unix Domain Sockets, you can have connection oriented behavior
and Unix Domain Sockets does provide a mechanism to send files to the other side of a socket pair.
In this case changing your program to use UNIX domain socket for process data communication was the best solution.
Regards
Shine
It is still true that connld is not on any HPUX release.
Regarding the support of connld in HPUX, this functionality is currently not included in the STREAMS product J2237A, nor is it planned in any future release at this time.
A Streams-based substitute for connld would be for you to write the program using Unix Domain Sockets instead of stream-based pipes. With Unix Domain Sockets, you can have connection oriented behavior
and Unix Domain Sockets does provide a mechanism to send files to the other side of a socket pair.
In this case changing your program to use UNIX domain socket for process data communication was the best solution.
Regards
Shine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 04:10 PM
09-29-2004 04:10 PM
Re: Connld functionality on HP-UX
Hi Sri Ram,
The "Porting UNIX Software" book may have answer to your question on connld.
http://www.oreilly.com/catalog/port/inx.html#C
Regards,
Hemanth
The "Porting UNIX Software" book may have answer to your question on connld.
http://www.oreilly.com/catalog/port/inx.html#C
Regards,
Hemanth
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP