Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ldns_tcp_read_wire(3) [debian man page]

ldns(3) 						     Library Functions Manual							   ldns(3)

NAME
ldns_tcp_send_query, ldns_tcp_read_wire, ldns_tcp_connect- SYNOPSIS
#include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> ssize_t ldns_tcp_send_query(ldns_buffer *qbin, int sockfd, const struct sockaddr_storage *to, socklen_t tolen); uint8_t* ldns_tcp_read_wire(int sockfd, size_t *size); int ldns_tcp_connect(const struct sockaddr_storage *to, socklen_t tolen, struct timeval timeout); DESCRIPTION
ldns_tcp_send_query() send a query via tcp to a server. Don't want for the answer qbin: the buffer to send sockfd: the socket to use to: which ip to send it tolen: socketlen Returns number of bytes sent ldns_tcp_read_wire() This routine may block. Use ldns_tcp_read_wire_timeout, it checks timeouts. Gives back a raw packet from the wire and reads the header data from the given socket. Allocates the data (of size size) itself, so don't forget to free sockfd: the socket to read from size: the number of bytes that are read Returns the data read ldns_tcp_connect() Create a tcp socket to the specified address to: ip and family tolen: length of to timeout: timeout for the connect attempt Returns a socket descriptor AUTHOR
The ldns team at NLnet Labs. Which consists out of Jelte Jansen and Miek Gieben. REPORTING BUGS
Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at http://www.nlnetlabs.nl/bugs/index.html COPYRIGHT
Copyright (c) 2004 - 2006 NLnet Labs. Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. SEE ALSO
ldns_send, ldns_pkt, ldns_resolver. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. REMARKS
This manpage was automaticly generated from the ldns source code by use of Doxygen and some perl. 30 May 2006 ldns(3)

Check Out this Related Man Page

ldns(3) 						     Library Functions Manual							   ldns(3)

NAME
ldns_update_zocount, ldns_update_prcount, ldns_update_upcount, ldns_update_adcount- SYNOPSIS
#include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> uint16_t ldns_update_zocount(const ldns_pkt *p); uint16_t ldns_update_prcount(const ldns_pkt *p); uint16_t ldns_update_upcount(const ldns_pkt *p); ldns_update_adcount(); DESCRIPTION
ldns_update_zocount() Get the zo count p: the packet Returns the zo count ldns_update_prcount() Get the zo count p: the packet Returns the pr count ldns_update_upcount() Get the zo count p: the packet Returns the up count ldns_update_adcount() AUTHOR
The ldns team at NLnet Labs. Which consists out of Jelte Jansen and Miek Gieben. REPORTING BUGS
Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at http://www.nlnetlabs.nl/bugs/index.html COPYRIGHT
Copyright (c) 2004 - 2006 NLnet Labs. Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. SEE ALSO
ldns_update_pkt_new. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. REMARKS
This manpage was automaticly generated from the ldns source code by use of Doxygen and some perl. 30 May 2006 ldns(3)
Man Page