HPE GreenLake Administration
Operating System - HP-UX
1832934
Members
2966
Online
110048
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
03-16-2001 09:39 AM
03-16-2001 09:39 AM
TLI
We are migrating from SVR4 to HP-UX 11.0. We have the following issues and request for clarification.
1. According to FAQ in http://hpux.cs.utah.edu/hppd/FAQ/7-43.html, TLI socket calls are not supported by HP-UX 10.0 onwards. It is recommended to use XTI instead of TLI. As the APIs are same, will the behaviour of the call be similar?
2.On UNIX (SVR4) we are having a structure opthdr(sys/socket.h), which is used in the tli call t_optmgmt.
On HP UX we do not have an equivalent for opthdr.
opthdr structure in SVR:
struct opthdr {
long level; /* protocol level affected */
long name; /* option to modify */
long len; /* length of option value */
};
3.The code on SVR4 is as follows:
struct t_optmgmt req;
struct opthdr *opt;
int ret;
char buf[sizeof(struct opthdr)];
memset((char*)buf, '\0',sizeof(buf));
opt=(struct opthdr *) buf;
opt->level=level;
opt->name=optname;
opt->len=OPTLEN(optlen);
memcpy(optval,(char *)(opt+1), optlen);
req.flags=T_NEGOTIATE;
req.opt.maxlen=req.opt.len=OPTLEN(sizeof(struct opthdr) + optlen);
req.opt.buf=buf;
ret=t_optmgmt(s, &req, &req);
The above code is not getting compiled on HP-UX 11.0 with aCC compiler.
4.If there exists a server using TLI calls, can a client on another node connect to it using XTI calls. We are getting this doubt because we will be porting a client program to XTI from TLI but our server is going to remain using TLI calls.
Thanks,
1. According to FAQ in http://hpux.cs.utah.edu/hppd/FAQ/7-43.html, TLI socket calls are not supported by HP-UX 10.0 onwards. It is recommended to use XTI instead of TLI. As the APIs are same, will the behaviour of the call be similar?
2.On UNIX (SVR4) we are having a structure opthdr(sys/socket.h), which is used in the tli call t_optmgmt.
On HP UX we do not have an equivalent for opthdr.
opthdr structure in SVR:
struct opthdr {
long level; /* protocol level affected */
long name; /* option to modify */
long len; /* length of option value */
};
3.The code on SVR4 is as follows:
struct t_optmgmt req;
struct opthdr *opt;
int ret;
char buf[sizeof(struct opthdr)];
memset((char*)buf, '\0',sizeof(buf));
opt=(struct opthdr *) buf;
opt->level=level;
opt->name=optname;
opt->len=OPTLEN(optlen);
memcpy(optval,(char *)(opt+1), optlen);
req.flags=T_NEGOTIATE;
req.opt.maxlen=req.opt.len=OPTLEN(sizeof(struct opthdr) + optlen);
req.opt.buf=buf;
ret=t_optmgmt(s, &req, &req);
The above code is not getting compiled on HP-UX 11.0 with aCC compiler.
4.If there exists a server using TLI calls, can a client on another node connect to it using XTI calls. We are getting this doubt because we will be porting a client program to XTI from TLI but our server is going to remain using TLI calls.
Thanks,
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2001 07:00 AM
03-20-2001 07:00 AM
Re: TLI
Arun,
Look in /usr/include/sys/xti.h for the
t_opthdr structure definition. This is
outlined in the t_optmgmt(3) man page.
Also examine xopen_networking(7).
HP provides the TLI API "as is"; most developers I have spoken with ported to XTI instead of taking risks with TLI. The differences are subtle, however any issues should be answered by the man pages.
Hope this helps in some way to resolve the issue,
-> Brian Hackley
Look in /usr/include/sys/xti.h for the
t_opthdr structure definition. This is
outlined in the t_optmgmt(3) man page.
Also examine xopen_networking(7).
HP provides the TLI API "as is"; most developers I have spoken with ported to XTI instead of taking risks with TLI. The differences are subtle, however any issues should be answered by the man pages.
Hope this helps in some way to resolve the issue,
-> Brian Hackley
Ask me about telecommuting!
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