Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 25 of 78) 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.c645 memset(&msg, 0, sizeof(msg) - sizeof(msg.bytes)); in smb_send_setup()
685 memset(&msg, 0, sizeof(msg) - sizeof(msg.bytes)); in smb_send_tree_connect()
712 memset(&msg, 0, sizeof(msg) - sizeof(msg.bytes)); in smb_send_open()
737 memset(&msg, 0, sizeof(msg)); in smb_send_close()
748 memset(&msg, 0, sizeof(msg)); in smb_send_tree_disconnect()
759 memset(&msg, 0, sizeof(msg)); in smb_send_read()
784 memset(msg, 0, sizeof(*msg)); in smb_send_write()
875 if(!msg) in smb_connection_state()
878 h = msg; in smb_connection_state()
972 if(!msg) in smb_request_state()
[all …]
H A Dopenldap.c273 const char *msg = "url parsing problem"; in oldap_url_parse() local
279 msg = url_errs[rc]; in oldap_url_parse()
280 failf(data, "LDAP local: %s", msg); in oldap_url_parse()
604 switch(ldap_msgtype(msg)) { in oldap_state_mechs_resp()
717 LDAPMessage *msg = NULL; in oldap_connecting() local
759 ldap_msgfree(msg); in oldap_connecting()
826 ldap_msgfree(msg); in oldap_connecting()
971 LDAPMessage *msg = NULL; in oldap_recv() local
993 if(!msg) in oldap_recv()
998 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.c47 CURLMsg *msg; in do_one_request() local
90 msg = curl_multi_info_read(m, &msgs_left); in do_one_request()
91 if(msg && msg->msg == CURLMSG_DONE && msg->easy_handle == curls) { in do_one_request()
92 res = msg->data.result; in do_one_request()
95 } 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.c127 struct msghdr msg = {0}; in do_sendmsg() local
137 msg.msg_iov = &msg_iov; in do_sendmsg()
138 msg.msg_iovlen = 1; in do_sendmsg()
147 cm = CMSG_FIRSTHDR(&msg); in do_sendmsg()
337 for(cmsg = CMSG_FIRSTHDR(msg); cmsg; cmsg = CMSG_NXTHDR(msg, cmsg)) { in vquic_msghdr_get_udp_gro()
348 (void)msg; in vquic_msghdr_get_udp_gro()
466 struct msghdr msg; in recvmsg_packets() local
481 memset(&msg, 0, sizeof(msg)); in recvmsg_packets()
482 msg.msg_iov = &msg_iov; in recvmsg_packets()
483 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 39 milliseconds

1234