Desmond Rivet
07-24-2004, 06:03 PM
Hi all,
I know that Linux implements the sockets interface, but if anyone has
any experience with TLI, help is appreciated :)
We installed the Linux streams package. It seems to install fine. The
streams.o module is in the appropriate spot. An lsmod shows that
streams.o is indeed loaded. We write and compile the following
program:
#include <stdio.h>
#include <errno.h>
#include <xti.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
main (int argc, char *argv[])
{
int res;
struct t_info loc_t_info;
char laoc_t_info[1000];
res = t_open("/dev/inet/tcp", O_RDWR | O_NDELAY, &loc_t_info);
printf("res = %d, errno = %d\n", res, errno);
perror("");
}
tl_open fails with the following result:
res = -1, errno = 19
No such device
Any ideas? Thanks!
Desmond
I know that Linux implements the sockets interface, but if anyone has
any experience with TLI, help is appreciated :)
We installed the Linux streams package. It seems to install fine. The
streams.o module is in the appropriate spot. An lsmod shows that
streams.o is indeed loaded. We write and compile the following
program:
#include <stdio.h>
#include <errno.h>
#include <xti.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
main (int argc, char *argv[])
{
int res;
struct t_info loc_t_info;
char laoc_t_info[1000];
res = t_open("/dev/inet/tcp", O_RDWR | O_NDELAY, &loc_t_info);
printf("res = %d, errno = %d\n", res, errno);
perror("");
}
tl_open fails with the following result:
res = -1, errno = 19
No such device
Any ideas? Thanks!
Desmond