ldns_tcp_send_query() send a query via tcp to a server. Don't want for the answer

qbin: the buffer to sendsockfd: the socket to useto: which ip to send ittolen: socketlenReturns 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 fromsize: the number of bytes that are readReturns the data read

ldns_tcp_connect() Create a tcp socket to the specified addressto: ip and familytolen: length of totimeout: timeout for the connect attemptReturns a socket descriptor