Data Structures (WS2DNET.H)

This section lists address type information for the header files.

DECnet node address

// if a_len = 2, DECnet NSP transport & DECnet routing
// if a_len > 2, DECnet NSP transport & OSI routing
struct dn_naddr {
  unsigned short  a_len;    // address length - set to DN_ADDL
  unsigned char   a_addr[DN_MAXADDL]; // DECnet address
};
 

DECnet socket

// DECnet uses object names & numbers instead of ports
struct sockaddr_dn {
  unsigned short   sdn_family;    // AF_DECnet
  unsigned char    sdn_flags;         // Reserved - set to zero
  unsigned char    sdn_objnum;    // DECnet object number
  unsigned short   sdn_objnamel;  // DECnet object name length
  unsigned char    sdn_objname[DN_MAXOBJL]; // DECnet object name
  struct dn_naddr  sdn_add;         // DECnet address
};
 

DECnet node entity

struct nodeent_f {
  char FAR *n_name;              // pointer to name of DECnet node 
  unsigned short n_addrtype;     // address type   
  unsigned short n_length;       // address length
  unsigned char FAR *n_addr;     // pointer to DECnet address
  unsigned char FAR *n_params; 
  unsigned char  n_reserved[16]; // Reserved
};
 

DECnet optional data

struct optdata_dn { 
  unsigned short  opt_status;          // status return
  unsigned short  opt_optl;            // length of data
  unsigned char   opt_data[DN_MAXOPTL]; // Optional data  
};
 

DECnet outgoing access control data

struct accessdata_dn {
  unsigned short  acc_accl;             // account length
  unsigned char   acc_acc[DN_MAXACCL];  // account string          
  unsigned short  acc_passl;            // password length
  unsigned char   acc_pass[DN_MAXACCL]; // password string 
  unsigned short  acc_userl;            // user length 
  unsigned char   acc_user[DN_MAXACCL]; // user string 
};
 

DECnet incoming access control

//  DECnet incoming access control information
struct dnet_accent
{
  unsigned char dac_status;       
  unsigned char dac_type;  // DN_NONE, etc.      
  char dac_username[DN_MAXACCL];  
  char dac_password[DN_MAXACCL]; 
};
 

DECnet call data

struct  calldata_dn {
struct optdata_dn { 
  unsigned short  opt_status;  
  unsigned short  opt_optl;     
  unsigned char   opt_data[DN_MAXOPTL]; 
};
struct accessdata_dn {
  unsigned short  acc_accl;   
  unsigned char   acc_acc[DN_MAXACCL];
  unsigned short  acc_passl;  
  unsigned char   acc_pass[DN_MAXACCL]; 
  unsigned short  acc_userl;    
  unsigned char   acc_user[DN_MAXACCL]; 
}
};
 

DECnet logical link

struct linkinfo_dn {
  unsigned short  idn_segsize;
  unsigned char   idn_linkstate;    
};