logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dnet_conn - Connect to remote DECnet object by name.

Description

dnet_conn  connects  to  the  remote  object  objname in host hostname using the protocol denoted by type
       usually DNPROTO_NSP.  If successful, returns an integer file descriptor, else return errno.

Example

       #include <netdnet/dn.h>
       #include <netdnet/dnetdb.h>
       #include <sys/socket.h>

       main(void)
       {
           int sockfd;

           sockfd=dnet_conn("mv3100","X$X0",DNPROTO_NSP,0,0,0,0);
           if (sockfd < 0)
                printf ("Error connecting to remote object X$X0 on node mv3100");
           else
           {
                printf ("Succesfully connected to remote object X$X0 on node mv3100");
                close (sockfd);
            }
       }

Name

       dnet_conn - Connect to remote DECnet object by name.

See Also

dnet_addr(3),   dnet_htoa(3),   dnet_ntoa(3),    getnodeadd(3),    getnodebyname(3),    getnodebyaddr(3),
       setnodeent(3)

DECnet database functions                         July 28, 1998                                     DNET_CONN(3)

Synopsis

#include<netdnet/dn.h>#include<netdnet/dnetdb.h>intdnet_conn(char*hostname,char*objname,inttype,int,int,int,int)

See Also