Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 25 of 77) sorted by relevance

1234

/curl/tests/unit/
H A Dcurlcheck.h27 #define fail_if(expr, msg) \ argument
31 __FILE__, __LINE__, #expr, msg); \
36 #define fail_unless(expr, msg) \ argument
40 __FILE__, __LINE__, #expr, msg); \
59 #define fail(msg) do { \ argument
61 __FILE__, __LINE__, msg); \
67 #define abort_if(expr, msg) \ argument
71 __FILE__, __LINE__, #expr, msg); \
77 #define abort_unless(expr, msg) \ argument
87 #define abort_test(msg) \ argument
[all …]
H A Dunit1399.c67 char msg[64]; in expect_timer_seconds() local
68 msnprintf(msg, sizeof(msg), "about %d seconds should have passed", seconds); in expect_timer_seconds()
69 fail_unless(usec_matches_seconds(data->progress.t_nslookup, seconds), msg); in expect_timer_seconds()
70 fail_unless(usec_matches_seconds(data->progress.t_connect, seconds), msg); in expect_timer_seconds()
71 fail_unless(usec_matches_seconds(data->progress.t_appconnect, seconds), msg); in expect_timer_seconds()
73 msg); in expect_timer_seconds()
75 msg); in expect_timer_seconds()
H A Dunit2600.c248 char msg[256]; in check_result() local
258 curl_msprintf(msg, "%d: expected result %d but got %d", in check_result()
260 fail(msg); in check_result()
263 curl_msprintf(msg, "%d: expected %d ipv4 creations, but got %d", in check_result()
265 fail(msg); in check_result()
268 curl_msprintf(msg, "%d: expected %d ipv6 creations, but got %d", in check_result()
270 fail(msg); in check_result()
277 fail(msg); in check_result()
282 fail(msg); in check_result()
296 fail(msg); in check_result()
[all …]
/curl/lib/
H A Dsmb.c656 memset(&msg, 0, sizeof(msg) - sizeof(msg.bytes)); in smb_send_setup()
693 memset(&msg, 0, sizeof(msg) - sizeof(msg.bytes)); in smb_send_tree_connect()
718 memset(&msg, 0, sizeof(msg) - sizeof(msg.bytes)); in smb_send_open()
743 memset(&msg, 0, sizeof(msg)); in smb_send_close()
754 memset(&msg, 0, sizeof(msg)); in smb_send_tree_disconnect()
765 memset(&msg, 0, sizeof(msg)); in smb_send_read()
790 memset(msg, 0, sizeof(*msg)); in smb_send_write()
881 if(!msg) in smb_connection_state()
884 h = msg; in smb_connection_state()
978 if(!msg) in smb_request_state()
[all …]
H A Dopenldap.c277 const char *msg = "url parsing problem"; in oldap_url_parse() local
283 msg = url_errs[rc]; in oldap_url_parse()
284 failf(data, "LDAP local: %s", msg); in oldap_url_parse()
619 switch(ldap_msgtype(msg)) { in oldap_state_mechs_resp()
732 LDAPMessage *msg = NULL; in oldap_connecting() local
774 ldap_msgfree(msg); in oldap_connecting()
841 ldap_msgfree(msg); in oldap_connecting()
986 LDAPMessage *msg = NULL; in oldap_recv() local
1008 if(!msg) in oldap_recv()
1013 switch(ldap_msgtype(msg)) { in oldap_recv()
[all …]
/curl/docs/examples/
H A D10-at-a-time.c107 CURLMsg *msg; in main() local
127 while((msg = curl_multi_info_read(cm, &msgs_left)) != NULL) { in main()
128 if(msg->msg == CURLMSG_DONE) { in main()
130 CURL *e = msg->easy_handle; in main()
131 curl_easy_getinfo(msg->easy_handle, CURLINFO_PRIVATE, &url); in main()
133 msg->data.result, curl_easy_strerror(msg->data.result), url); in main()
139 fprintf(stderr, "E: CURLMsg (%d)\n", msg->msg); in main()
H A Dmulti-double.c62 CURLMsg *msg; in main() local
74 msg = curl_multi_info_read(multi_handle, &queued); in main()
75 if(msg) { in main()
76 if(msg->msg == CURLMSG_DONE) { in main()
81 } while(msg); in main()
H A Dmulti-app.c52 CURLMsg *msg; /* for picking up messages with the transfer status */ in main() local
84 while((msg = curl_multi_info_read(multi_handle, &msgs_left)) != NULL) { in main()
85 if(msg->msg == CURLMSG_DONE) { in main()
90 int found = (msg->easy_handle == handles[idx]); in main()
97 printf("HTTP transfer completed with status %d\n", msg->data.result); in main()
100 printf("FTP transfer completed with status %d\n", msg->data.result); in main()
H A Dmulti-legacy.c58 CURLMsg *msg; /* for picking up messages with the transfer status */ in main() local
153 while((msg = curl_multi_info_read(multi_handle, &msgs_left)) != NULL) { in main()
154 if(msg->msg == CURLMSG_DONE) { in main()
159 int found = (msg->easy_handle == handles[idx]); in main()
166 printf("HTTP transfer completed with status %d\n", msg->data.result); in main()
169 printf("FTP transfer completed with status %d\n", msg->data.result); in main()
/curl/tests/libtest/
H A Dlib1515.c40 static int debug_callback(CURL *curl, curl_infotype info, char *msg, in debug_callback() argument
47 fprintf(stderr, "debug: %.*s", (int) len, msg); in debug_callback()
58 CURLMsg *msg; in do_one_request() local
97 msg = curl_multi_info_read(m, &msgs_left); in do_one_request()
98 if(msg && msg->msg == CURLMSG_DONE && msg->easy_handle == curls) { in do_one_request()
99 res = msg->data.result; in do_one_request()
102 } while(msg); in do_one_request()
H A Dlib1531.c41 CURLMsg *msg; /* for picking up messages with the transfer status */ in test() local
143 msg = curl_multi_info_read(multi_handle, &msgs_left); in test()
144 if(msg && msg->msg == CURLMSG_DONE) { in test()
145 printf("HTTP transfer completed with status %d\n", msg->data.result); in test()
150 } while(msg); in test()
H A Dlib540.c105 CURLMsg *msg; in loop() local
166 msg = curl_multi_info_read(cm, &Q); in loop()
167 if(!msg) in loop()
169 if(msg->msg == CURLMSG_DONE) { in loop()
171 CURL *e = msg->easy_handle; in loop()
172 fprintf(stderr, "R: %d - %s\n", (int)msg->data.result, in loop()
173 curl_easy_strerror(msg->data.result)); in loop()
184 fprintf(stderr, "E: CURLMsg (%d)\n", (int)msg->msg); in loop()
H A Dlib1500.c39 CURLMsg *msg; in test() local
75 msg = curl_multi_info_read(multi, &still_running); in test()
76 if(msg) in test()
79 i = msg->data.result; in test()
H A Dlib1552.c39 CURLMsg *msg; in test() local
78 msg = curl_multi_info_read(multi, &still_running); in test()
79 if(msg) in test()
82 i = msg->data.result; in test()
H A Dlib507.c39 CURLMsg *msg; in test() local
84 msg = curl_multi_info_read(multi, &still_running); in test()
85 if(msg) in test()
88 i = msg->data.result; in test()
H A Dlib597.c50 CURLMsg *msg; in test() local
118 msg = curl_multi_info_read(multi, &msgs_left); in test()
119 if(msg) in test()
120 res = msg->data.result; in test()
H A Dlib591.c45 CURLMsg *msg; in test() local
136 msg = curl_multi_info_read(multi, &msgs_left); in test()
137 if(msg) in test()
138 res = msg->data.result; in test()
H A Dlib670.c108 CURLMsg *msg; in test() local
230 msg = curl_multi_info_read(multi, &msgs_left); in test()
231 if(!msg) in test()
233 if(msg->msg == CURLMSG_DONE) { in test()
234 res = msg->data.result; in test()
H A Dlib1301.c26 #define fail_unless(expr, msg) \ argument
30 __FILE__, __LINE__, #expr, msg); \
H A Dlib2405.c130 CURLMsg *msg; /* for picking up messages with the transfer status */ in test_run() local
201 msg = curl_multi_info_read(multi, &msgs_left); in test_run()
202 if(!msg) in test_run()
204 if(msg->msg == CURLMSG_DONE) { in test_run()
205 result = msg->data.result; in test_run()
/curl/tests/http/clients/
H A Dh2-upgrade-extreme.c147 CURLMsg *msg; in main() local
215 while((msg = curl_multi_info_read(multi, &msgs_in_queue)) != NULL) { in main()
216 if(msg->msg == CURLMSG_DONE) { in main()
219 curl_easy_getinfo(msg->easy_handle, CURLINFO_XFER_ID, &xfer_id); in main()
220 curl_easy_getinfo(msg->easy_handle, CURLINFO_RESPONSE_CODE, &status); in main()
221 if(msg->data.result == CURLE_SEND_ERROR || in main()
222 msg->data.result == CURLE_RECV_ERROR) { in main()
226 else if(msg->data.result) { in main()
228 ": failed with %d\n", xfer_id, msg->data.result); in main()
236 curl_multi_remove_handle(multi, msg->easy_handle); in main()
[all …]
H A Dtls-session-reuse.c183 CURLMsg *msg; in main() local
275 while((msg = curl_multi_info_read(multi, &msgs_in_queue)) != NULL) { in main()
276 if(msg->msg == CURLMSG_DONE) { in main()
279 curl_easy_getinfo(msg->easy_handle, CURLINFO_XFER_ID, &xfer_id); in main()
280 curl_easy_getinfo(msg->easy_handle, CURLINFO_RESPONSE_CODE, &status); in main()
281 if(msg->data.result == CURLE_SEND_ERROR || in main()
282 msg->data.result == CURLE_RECV_ERROR) { in main()
286 else if(msg->data.result) { in main()
288 ": failed with %d\n", xfer_id, msg->data.result); in main()
296 curl_multi_remove_handle(multi, msg->easy_handle); in main()
[all …]
H A Dh2-pausing.c149 static void usage(const char *msg) in usage() argument
151 if(msg) in usage()
152 fprintf(stderr, "%s\n", msg); in usage()
207 CURLMsg *msg; in main() local
349 while((msg = curl_multi_info_read(multi_handle, &msgs_left)) != NULL) { in main()
350 if(msg->msg == CURLMSG_DONE) { in main()
352 if(msg->easy_handle == handles[i].h) { in main()
356 handles[i].resumed, msg->data.result); in main()
/curl/lib/vquic/
H A Dvquic.c138 struct msghdr msg = {0}; in do_sendmsg() local
148 msg.msg_iov = &msg_iov; in do_sendmsg()
149 msg.msg_iovlen = 1; in do_sendmsg()
158 cm = CMSG_FIRSTHDR(&msg); in do_sendmsg()
348 for(cmsg = CMSG_FIRSTHDR(msg); cmsg; cmsg = CMSG_NXTHDR(msg, cmsg)) { in msghdr_get_udp_gro()
359 (void)msg; in msghdr_get_udp_gro()
469 struct msghdr msg; in recvmsg_packets() local
484 memset(&msg, 0, sizeof(msg)); in recvmsg_packets()
485 msg.msg_iov = &msg_iov; in recvmsg_packets()
486 msg.msg_iovlen = 1; in recvmsg_packets()
[all …]
/curl/docs/libcurl/
H A Dcurl_multi_remove_handle.md61 CURLMsg *msg = curl_multi_info_read(multi, &queued);
62 if(msg) {
63 if(msg->msg == CURLMSG_DONE) {
66 curl_multi_remove_handle(multi, msg->easy_handle);

Completed in 45 milliseconds

1234