Changeset 6071 for pjproject/trunk/pjnath/include/pjnath/turn_sock.h
- Timestamp:
- Sep 23, 2019 7:25:41 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/include/pjnath/turn_sock.h
r6004 r6071 87 87 const pj_sockaddr_t *peer_addr, 88 88 unsigned addr_len); 89 90 /** 91 * Notifification when asynchronous send operation has completed. 92 * 93 * @param turn_sock The TURN transport. 94 * @param sent If value is positive non-zero it indicates the 95 * number of data sent. When the value is negative, 96 * it contains the error code which can be retrieved 97 * by negating the value (i.e. status=-sent). 98 * 99 * @return Application should normally return PJ_TRUE to let 100 * the TURN transport continue its operation. However 101 * it must return PJ_FALSE if it has destroyed the 102 * TURN transport in this callback. 103 */ 104 pj_bool_t (*on_data_sent)(pj_turn_sock *sock, 105 pj_ssize_t sent); 89 106 90 107 /** … … 575 592 * @param addr_len Length of the address. 576 593 * 577 * @return PJ_SUCCESS if the operation has been successful, 578 * or the appropriate error code on failure. 594 * @return PJ_SUCCESS if data has been sent immediately, or 595 * PJ_EPENDING if data cannot be sent immediately. In 596 * this case the \a on_data_sent() callback will be 597 * called when data is actually sent. Any other return 598 * value indicates error condition. 579 599 */ 580 600 PJ_DECL(pj_status_t) pj_turn_sock_sendto(pj_turn_sock *turn_sock,
Note: See TracChangeset
for help on using the changeset viewer.