ldns_tcp_connect (3) - Linux Man Pages
NAMEldns_tcp_send_query, ldns_tcp_read_wire, ldns_tcp_connect
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);
- send a query via tcp to a server. Don't want for the answer
.br qbin: the buffer to send .br sockfd: the socket to use .br to: which ip to send it .br tolen: socketlen .br Returns number of bytes sent
- 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
.br sockfd: the socket to read from .br size: the number of bytes that are read .br Returns the data read
- Create a tcp socket to the specified address .br to: ip and family .br tolen: length of to .br timeout: timeout for the connect attempt .br Returns a socket descriptor
AUTHORThe ldns team at NLnet Labs. Which consists out of Jelte Jansen and Miek Gieben.
REPORTING BUGSPlease report bugs to ldns-team [at] nlnetlabs.nl or in our bugzilla at http://www.nlnetlabs.nl/bugs/index.html
COPYRIGHTCopyright (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 ALSOldns_send, ldns_pkt, ldns_resolver. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.
REMARKSThis manpage was automaticly generated from the ldns source code by use of Doxygen and some perl.
Linux man pages generated by: SysTutorials