- Timestamp:
- Aug 25, 2015 8:45:46 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pjlib-test/udp_echo_srv_ioqueue.c
r4537 r5170 37 37 }; 38 38 39 static void on_read_complete(pj_ioqueue_key_t * key,39 static void on_read_complete(pj_ioqueue_key_t *ioq_key, 40 40 pj_ioqueue_op_key_t *op_key, 41 41 pj_ssize_t bytes_received) … … 63 63 pj_memcpy(&send_rec->addr, &recv_rec->addr, recv_rec->addrlen); 64 64 send_rec->addrlen = recv_rec->addrlen; 65 rc = pj_ioqueue_sendto( key, &send_rec->op_key_,65 rc = pj_ioqueue_sendto(ioq_key, &send_rec->op_key_, 66 66 send_rec->buffer, &sent, 0, 67 67 &send_rec->addr, send_rec->addrlen); … … 76 76 if (!send_rec->is_pending) { 77 77 bytes_received = recv_rec->size; 78 rc = pj_ioqueue_recvfrom( key, &recv_rec->op_key_,78 rc = pj_ioqueue_recvfrom(ioq_key, &recv_rec->op_key_, 79 79 recv_rec->buffer, &bytes_received, 0, 80 80 &recv_rec->addr, &recv_rec->addrlen); … … 100 100 } 101 101 102 static void on_write_complete(pj_ioqueue_key_t * key,102 static void on_write_complete(pj_ioqueue_key_t *ioq_key, 103 103 pj_ioqueue_op_key_t *op_key, 104 104 pj_ssize_t bytes_sent) … … 115 115 116 116 send_rec->is_pending = 0; 117 on_read_complete( key, &send_rec->peer->op_key_, 0);117 on_read_complete(ioq_key, &send_rec->peer->op_key_, 0); 118 118 } 119 119
Note: See TracChangeset
for help on using the changeset viewer.