Lines Matching refs:sd
23 int sd; member
97 res = send(c->sd, wpabuf_head_u8(c->req) + c->req_pos, send_len, 0); in http_client_tx_ready()
101 eloop_unregister_sock(c->sd, EVENT_TYPE_WRITE); in http_client_tx_ready()
117 eloop_unregister_sock(c->sd, EVENT_TYPE_WRITE); in http_client_tx_ready()
121 c->hread = httpread_create(c->sd, http_client_got_response, c, in http_client_tx_ready()
142 c->sd = -1; in http_client_addr()
148 c->sd = socket(AF_INET, SOCK_STREAM, 0); in http_client_addr()
149 if (c->sd < 0) in http_client_addr()
152 if (fcntl(c->sd, F_SETFL, O_NONBLOCK) != 0) { in http_client_addr()
158 if (connect(c->sd, (struct sockaddr *) dst, sizeof(*dst))) { in http_client_addr()
171 if (eloop_register_sock(c->sd, EVENT_TYPE_WRITE, http_client_tx_ready, in http_client_addr()
290 if (c->sd >= 0) { in http_client_free()
291 eloop_unregister_sock(c->sd, EVENT_TYPE_WRITE); in http_client_free()
292 close(c->sd); in http_client_free()