1ldns(25 Apr 2005)                                            ldns(25 Apr 2005)
2
3
4

NAME

6       ldns_tcp_send_query, ldns_tcp_read_wire, ldns_tcp_connect
7
8

SYNOPSIS

10       #ifdef HAVE_STDINT_H
11       #include <stdint.h>
12       #endif /* HAVE_STDINT_H */
13
14       #ifdef HAVE_STDBOOL_H
15       #include <stdbool.h>
16       #endif /* HAVE_STDBOOL_H */
17
18       #include <ldns/ldns.h>
19
20       ssize_t ldns_tcp_send_query(ldns_buffer *qbin, int sockfd, const struct
21       sockaddr_storage *to, socklen_t tolen);
22
23       uint8_t* ldns_tcp_read_wire(int sockfd, size_t *size);
24
25       int  ldns_tcp_connect(const  struct  sockaddr_storage  *to,   socklen_t
26       tolen, struct timeval timeout);
27

DESCRIPTION

29       ldns_tcp_send_query()  send a query via tcp to a server. Don;t want for
30              the answer
31
32              qbin: the buffer to send
33              sockfd: the socket to use
34              to: which ip to send it
35              tolen: socketlen
36              Returns number of bytes sent
37
38       ldns_tcp_read_wire() Gives back a raw packet from the  wire  and  reads
39              the  header  data  from the given socket. Allocates the data (of
40              size size) itself, so don't forget to free
41
42              sockfd: the socket to read from
43              size: the number of bytes that are read
44              Returns the data read
45
46       ldns_tcp_connect() Create a tcp socket to the specified address
47              to: ip and family
48              tolen: length of to
49              timeout: timeout for the socket
50              Returns a socket descriptor
51

AUTHOR

53       The ldns team at NLnet Labs. Which consists out of: Jelte Jansen,  Erik
54       Rozendaal and Miek Gieben.
55
56

REPORTING BUGS

58       Please  report  bugs  to  ldns-team@nlnetlabs.nl  or in our Bugzilla at
59       http://www.nlnetlabs.nl/bugs/index.html
60
61       Be sure to select ldns as the product.
62
63
65       Copyright (c) 2004, 2005 NLnet Labs.  Licensed under the  BSD  License.
66       There  is  NO  warranty;  not even for MERCHANTABILITY or FITNESS FOR A
67       PARTICULAR PURPOSE.
68

SEE ALSO

70       perldoc Net::DNS, RFC1043, RFC1035, RFC4033, RFC4034 and RFC4035.
71

REMARKS

73       This manpage was automaticly generated from the ldns source code by use
74       of Doxygen and some perl.
75
76
77
78                                                             ldns(25 Apr 2005)
Impressum