Changeset 5953 for pjproject/trunk/pjlib/src/pjlib-test/ioq_udp.c
- Timestamp:
- Mar 15, 2019 10:22:11 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pjlib-test/ioq_udp.c
r5170 r5953 209 209 pj_create_random_string(send_buf, bufsize); 210 210 211 // Init operation keys. 212 pj_ioqueue_op_key_init(&read_op, sizeof(read_op)); 213 pj_ioqueue_op_key_init(&write_op, sizeof(write_op)); 214 211 215 // Register reading from ioqueue. 212 216 TRACE_("start recvfrom..."); … … 714 718 } 715 719 bytes = bufsize; 720 pj_ioqueue_op_key_init(&inactive_read_op[i], 721 sizeof(inactive_read_op[i])); 716 722 rc = pj_ioqueue_recv(keys[i], &inactive_read_op[i], recv_buf, &bytes, 0); 717 723 if (rc != PJ_EPENDING) { … … 751 757 // Randomize send buffer. 752 758 pj_create_random_string(send_buf, bufsize); 759 760 // Init operation keys. 761 pj_ioqueue_op_key_init(&read_op, sizeof(read_op)); 762 pj_ioqueue_op_key_init(&write_op, sizeof(write_op)); 753 763 754 764 // Start reading on the server side.
Note: See TracChangeset
for help on using the changeset viewer.