tl_open fails, No such device

Discussion in 'Linux Networking' started by Desmond Rivet, Jun 25, 2003.

  1. 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
     
    Desmond Rivet, Jun 25, 2003
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.