Lines Matching +full:- +full:5

76 	printf("%10.0f - Client received %lu bytes of %s data from server%s",  in websocket_client_data_handler()
77 difftime(now, pclient_data->started), in websocket_client_data_handler()
106 struct tmsg_list_elem **where = &(pclient_data->msgs); in websocket_client_data_handler()
114 p->timestamp = now; in websocket_client_data_handler()
115 p->data = malloc(data_len); in websocket_client_data_handler()
116 memcpy(p->data, data, data_len); in websocket_client_data_handler()
117 p->len = data_len; in websocket_client_data_handler()
118 p->next = NULL; in websocket_client_data_handler()
120 where = &((*where)->next); in websocket_client_data_handler()
137 printf("%10.0f - Goodbye\n", difftime(now, pclient_data->started)); in websocket_client_data_handler()
153 pclient_data->closed = time(NULL); in websocket_client_close_handler()
154 printf("%10.0f - Client: Close handler\n", in websocket_client_close_handler()
155 difftime(pclient_data->closed, pclient_data->started)); in websocket_client_close_handler()
177 pclient_data->started = time(NULL); in run_websocket_client()
178 pclient_data->closed = 0; in run_websocket_client()
179 pclient_data->msgs = NULL; in run_websocket_client()
182 printf("%10.0f - Connecting to %s:%i\n", 0.0, host, port); in run_websocket_client()
203 printf("%10.0f - Connected\n", difftime(time(NULL), pclient_data->started)); in run_websocket_client()
207 printf("%10.0f - Sending greetings\n", in run_websocket_client()
208 difftime(time(NULL), pclient_data->started)); in run_websocket_client()
217 sleep(5); in run_websocket_client()
220 for (i = 0; i < 5; i++) { in run_websocket_client()
221 /* Send a PING message every 5 seconds. */ in run_websocket_client()
222 printf("%10.0f - Sending PING\n", in run_websocket_client()
223 difftime(time(NULL), pclient_data->started)); in run_websocket_client()
228 sleep(5); in run_websocket_client()
238 printf("%10.0f - Sending greetings again\n", in run_websocket_client()
239 difftime(time(NULL), pclient_data->started)); in run_websocket_client()
248 sleep(5); in run_websocket_client()
250 /* Send some "song text": http://www.99-bottles-of-beer.net/ */ in run_websocket_client()
273 b--; in run_websocket_client()
324 sleep(5); in run_websocket_client()
328 printf("%10.0f - Sending close message\n", in run_websocket_client()
329 difftime(time(NULL), pclient_data->started)); in run_websocket_client()
337 * here the same time (printf to stdout is not thread-safe, but in run_websocket_client()
340 sleep(5); in run_websocket_client()
343 printf("%10.0f - Connection state: %s\n", in run_websocket_client()
344 difftime(time(NULL), pclient_data->started), in run_websocket_client()
345 ((pclient_data->closed == 0) ? "open" : "closed")); in run_websocket_client()
349 printf("%10.0f - End of test\n", in run_websocket_client()
350 difftime(time(NULL), pclient_data->started)); in run_websocket_client()
356 struct tmsg_list_elem **where = &(pclient_data->msgs); in run_websocket_client()
358 printf("%10.0f - [%5lu] ", in run_websocket_client()
359 difftime((*where)->timestamp, pclient_data->started), in run_websocket_client()
360 (unsigned long)(*where)->len); in run_websocket_client()
361 fwrite((const char *)(*where)->data, 1, (*where)->len, stdout); in run_websocket_client()
364 where = &((*where)->next); in run_websocket_client()
370 struct tmsg_list_elem **where = &(pclient_data->msgs); in run_websocket_client()
374 free((*where)->data); in run_websocket_client()
379 where = &((*where)->next); in run_websocket_client()