tcp_req_info
struct tcp_req_info*
struct tcp_req_info* req = (struct tcp_req_info*)malloc(sizeof(*req));
tcp_req_info_delete(struct tcp_req_info* req)
void tcp_req_info_clear(struct tcp_req_info* req)
tcp_req_info_remove_mesh_state(struct tcp_req_info* req, struct mesh_state* m)
tcp_req_info_setup_listen(struct tcp_req_info* req)
tcp_req_info_pop_done(struct tcp_req_info* req)
tcp_req_info_start_write_buf(struct tcp_req_info* req, uint8_t* buf,
tcp_req_pickup_next_result(struct tcp_req_info* req)
tcp_req_info_handle_read_close(struct tcp_req_info* req)
tcp_req_info_handle_writedone(struct tcp_req_info* req)
tcp_req_info_handle_readdone(struct tcp_req_info* req)
tcp_req_info_add_meshstate(struct tcp_req_info* req,
tcp_req_info_add_result(struct tcp_req_info* req, uint8_t* buf, size_t len)
tcp_req_info_send_reply(struct tcp_req_info* req)
struct tcp_req_info* tcp_req_info_create(struct sldns_buffer* spoolbuf);
void tcp_req_info_delete(struct tcp_req_info* req);
void tcp_req_info_clear(struct tcp_req_info* req);
void tcp_req_info_remove_mesh_state(struct tcp_req_info* req,
void tcp_req_info_handle_writedone(struct tcp_req_info* req);
void tcp_req_info_handle_readdone(struct tcp_req_info* req);
int tcp_req_info_add_meshstate(struct tcp_req_info* req,
void tcp_req_info_send_reply(struct tcp_req_info* req);
int tcp_req_info_handle_read_close(struct tcp_req_info* req);
if(r->query_reply.c->tcp_req_info) {
r_buffer = r->query_reply.c->tcp_req_info->spool_buffer;
if(r->query_reply.c->tcp_req_info) {
tcp_req_info_remove_mesh_state(r->query_reply.c->tcp_req_info, mstate);
if(r->query_reply.c->tcp_req_info)
r_buffer = r->query_reply.c->tcp_req_info->spool_buffer;
if(r->query_reply.c->tcp_req_info)
tcp_req_info_remove_mesh_state(r->query_reply.c->tcp_req_info, mstate);
if(rep->c->tcp_req_info) {
r_buffer = rep->c->tcp_req_info->spool_buffer;
if(rep->c->tcp_req_info) {
if(!tcp_req_info_add_meshstate(rep->c->tcp_req_info, mesh, s)) {
if((c_hdl->type == comm_tcp && c_hdl->tcp_req_info) ||
if(c->tcp_req_info) {
tcp_req_info_handle_writedone(c->tcp_req_info);
if(c->tcp_req_info) {
tcp_req_info_handle_readdone(c->tcp_req_info);
if(c->tcp_req_info)
return tcp_req_info_handle_read_close(c->tcp_req_info);
if(c->tcp_req_info)
return tcp_req_info_handle_read_close(c->tcp_req_info);
if(c->tcp_req_info)
return tcp_req_info_handle_read_close(c->tcp_req_info);
if(c->tcp_req_info)
return tcp_req_info_handle_read_close(c->tcp_req_info);
if(c->tcp_req_info)
return tcp_req_info_handle_read_close(c->tcp_req_info);
if(c->tcp_req_info)
return tcp_req_info_handle_read_close(c->tcp_req_info);
if(c->tcp_req_info)
return tcp_req_info_handle_read_close(c->tcp_req_info);
if(c->tcp_req_info)
return tcp_req_info_handle_read_close(c->tcp_req_info);
while(c->tcp_req_info->read_again) {
c->tcp_req_info->read_again = 0;
int has_tcpq = (c->tcp_req_info != NULL);
if(has_tcpq && c->tcp_req_info && c->tcp_req_info->read_again) {
int has_tcpq = (c->tcp_req_info != NULL);
if(has_tcpq && c->tcp_req_info && c->tcp_req_info->read_again) {
c->tcp_req_info = tcp_req_info_create(spoolbuf);
if(!c->tcp_req_info) {
c->tcp_req_info->cp = c;
tcp_req_info_delete(c->tcp_req_info);
if(c->tcp_req_info)
tcp_req_info_clear(c->tcp_req_info);
if(c->tcp_req_info) {
tcp_req_info_delete(c->tcp_req_info);
struct sldns_buffer* dtbuffer = repinfo->c->tcp_req_info
?repinfo->c->tcp_req_info->spool_buffer
if(repinfo->c->tcp_req_info) {
tcp_req_info_send_reply(repinfo->c->tcp_req_info);
if(repinfo->c->tcp_req_info)
repinfo->c->tcp_req_info->is_drop = 1;
struct tcp_req_info* tcp_req_info;
if(repinfo->c->tcp_req_info) {
repinfo->c->tcp_req_info->spool_buffer,
struct tcp_req_info*
struct tcp_req_info* req = (struct tcp_req_info*)malloc(sizeof(*req));
tcp_req_info_delete(struct tcp_req_info* req)
void tcp_req_info_clear(struct tcp_req_info* req)
tcp_req_info_remove_mesh_state(struct tcp_req_info* req, struct mesh_state* m)
tcp_req_info_setup_listen(struct tcp_req_info* req)
tcp_req_info_pop_done(struct tcp_req_info* req)
tcp_req_info_start_write_buf(struct tcp_req_info* req, uint8_t* buf,
tcp_req_pickup_next_result(struct tcp_req_info* req)
tcp_req_info_handle_read_close(struct tcp_req_info* req)
tcp_req_info_handle_writedone(struct tcp_req_info* req)
tcp_req_info_handle_readdone(struct tcp_req_info* req)
tcp_req_info_add_meshstate(struct tcp_req_info* req,
tcp_req_info_add_result(struct tcp_req_info* req, uint8_t* buf, size_t len)
tcp_req_info_send_reply(struct tcp_req_info* req)
struct tcp_req_info* tcp_req_info_create(struct sldns_buffer* spoolbuf);
void tcp_req_info_delete(struct tcp_req_info* req);
void tcp_req_info_clear(struct tcp_req_info* req);
void tcp_req_info_remove_mesh_state(struct tcp_req_info* req,
void tcp_req_info_handle_writedone(struct tcp_req_info* req);
void tcp_req_info_handle_readdone(struct tcp_req_info* req);
int tcp_req_info_add_meshstate(struct tcp_req_info* req,
void tcp_req_info_send_reply(struct tcp_req_info* req);
int tcp_req_info_handle_read_close(struct tcp_req_info* req);
if(r->query_reply.c->tcp_req_info) {
r_buffer = r->query_reply.c->tcp_req_info->spool_buffer;
if(r->query_reply.c->tcp_req_info) {
tcp_req_info_remove_mesh_state(r->query_reply.c->tcp_req_info, mstate);
if(r->query_reply.c->tcp_req_info)
r_buffer = r->query_reply.c->tcp_req_info->spool_buffer;
if(r->query_reply.c->tcp_req_info)
tcp_req_info_remove_mesh_state(r->query_reply.c->tcp_req_info, mstate);
if(rep->c->tcp_req_info) {
r_buffer = rep->c->tcp_req_info->spool_buffer;
if(rep->c->tcp_req_info) {
if(!tcp_req_info_add_meshstate(rep->c->tcp_req_info, mesh, s)) {
int tcp_req_info_add_meshstate(struct tcp_req_info* ATTR_UNUSED(req),
tcp_req_info_remove_mesh_state(struct tcp_req_info* ATTR_UNUSED(req),
if((c_hdl->type == comm_tcp && c_hdl->tcp_req_info) ||
if(c->tcp_req_info) {
tcp_req_info_handle_writedone(c->tcp_req_info);
if(c->tcp_req_info) {
tcp_req_info_handle_readdone(c->tcp_req_info);
if(c->tcp_req_info)
return tcp_req_info_handle_read_close(c->tcp_req_info);
if(c->tcp_req_info)
return tcp_req_info_handle_read_close(c->tcp_req_info);
if(c->tcp_req_info)
return tcp_req_info_handle_read_close(c->tcp_req_info);
if(c->tcp_req_info)
return tcp_req_info_handle_read_close(c->tcp_req_info);
if(c->tcp_req_info)
return tcp_req_info_handle_read_close(c->tcp_req_info);
if(c->tcp_req_info)
return tcp_req_info_handle_read_close(c->tcp_req_info);
if(c->tcp_req_info)
return tcp_req_info_handle_read_close(c->tcp_req_info);
if(c->tcp_req_info)
return tcp_req_info_handle_read_close(c->tcp_req_info);
while(c->tcp_req_info->read_again) {
c->tcp_req_info->read_again = 0;
int has_tcpq = (c->tcp_req_info != NULL);
if(has_tcpq && c->tcp_req_info && c->tcp_req_info->read_again) {
int has_tcpq = (c->tcp_req_info != NULL);
if(has_tcpq && c->tcp_req_info && c->tcp_req_info->read_again) {
c->tcp_req_info = tcp_req_info_create(spoolbuf);
if(!c->tcp_req_info) {
c->tcp_req_info->cp = c;
tcp_req_info_delete(c->tcp_req_info);
if(c->tcp_req_info)
tcp_req_info_clear(c->tcp_req_info);
if(c->tcp_req_info) {
tcp_req_info_delete(c->tcp_req_info);
struct sldns_buffer* dtbuffer = repinfo->c->tcp_req_info
?repinfo->c->tcp_req_info->spool_buffer
if(repinfo->c->tcp_req_info) {
tcp_req_info_send_reply(repinfo->c->tcp_req_info);
if(repinfo->c->tcp_req_info)
repinfo->c->tcp_req_info->is_drop = 1;
struct tcp_req_info* tcp_req_info;