dnet_conn(3)

dnet_conn3

Connect to remote decnet object by name.

Usage

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

int dnet_conn (char *hostname, char *objname, int type, int,int,int,int)

Overview

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.

Examples

#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);
     }
}

Releases

Unchanged in 9 releases since Debian 3.0 (Woody).

  1. 3.0–10

From libdnet-dev 2.65+b1 in Debian 10 (Buster). Parsed by carta from the page's man source.