Lines Matching refs:req
136 static int connect_cb(int sock, struct http_request *req, void *user_data) in connect_cb() argument
344 struct websocket_request req; in main() local
346 memset(&req, 0, sizeof(req)); in main()
348 req.host = SERVER_ADDR4; in main()
349 req.url = "/"; in main()
350 req.optional_headers = extra_headers; in main()
351 req.cb = connect_cb; in main()
352 req.tmp_buf = temp_recv_buf_ipv4; in main()
353 req.tmp_buf_len = sizeof(temp_recv_buf_ipv4); in main()
355 websock4 = websocket_connect(sock4, &req, timeout, "IPv4"); in main()
364 struct websocket_request req; in main() local
366 memset(&req, 0, sizeof(req)); in main()
368 req.host = SERVER_ADDR6; in main()
369 req.url = "/"; in main()
370 req.optional_headers = extra_headers; in main()
371 req.cb = connect_cb; in main()
372 req.tmp_buf = temp_recv_buf_ipv6; in main()
373 req.tmp_buf_len = sizeof(temp_recv_buf_ipv6); in main()
375 websock6 = websocket_connect(sock6, &req, timeout, "IPv6"); in main()