/*++ /* NAME /* dns_rr_to_sa 3 /* SUMMARY /* resource record to socket address /* SYNOPSIS /* #include <dns.h> /* /* int dns_rr_to_sa(rr, port, sa, sa_length) /* DNS_RR *rr; /* unsigned port; /* struct sockaddr *sa; /* SOCKADDR_SIZE *sa_length; /* DESCRIPTION /* dns_rr_to_sa() converts the address in a DNS resource record into /* a socket address of the corresponding type. /* /* Arguments: /* .IP rr /* DNS resource record pointer. /* .IP port /* TCP or UDP port, network byte order. /* .IP sa /* Socket address pointer. /* .IP sa_length /* On input, the available socket address storage space. /* On output, the amount of space actually used. /* DIAGNOSTICS /* The result is non-zero in case of problems, with the /* error type returned via the errno variable. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA
/*--*/
/* System libraries. */
#include <sys_defs.h> #include <errno.h>
/* Utility library. */
#include <msg.h>
/* DNS library. */
#include <dns.h>
/* dns_rr_to_sa - resource record to socket address */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.