Changeset 4461 for pjproject/trunk/pjlib/src/pj/activesock.c
- Timestamp:
- Apr 5, 2013 3:02:19 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/activesock.c
r4359 r4461 844 844 " operation, stopping further ioqueue accepts.", 845 845 asock->err_counter, asock->last_err)); 846 847 if ((status == PJ_STATUS_FROM_OS(OSERR_EWOULDBLOCK)) && 848 (asock->cb.on_accept_complete2)) 849 { 850 (*asock->cb.on_accept_complete2)(asock, 851 accept_op->new_sock, 852 &accept_op->rem_addr, 853 accept_op->rem_addr_len, 854 PJ_ESOCKETSTOP); 855 } 846 856 return; 847 857 } … … 851 861 } 852 862 853 if (status==PJ_SUCCESS && asock->cb.on_accept_complete) { 863 if (status==PJ_SUCCESS && (asock->cb.on_accept_complete2 || 864 asock->cb.on_accept_complete)) { 854 865 pj_bool_t ret; 855 866 856 867 /* Notify callback */ 857 ret = (*asock->cb.on_accept_complete)(asock, accept_op->new_sock, 858 &accept_op->rem_addr, 859 accept_op->rem_addr_len); 868 if (asock->cb.on_accept_complete2) { 869 ret = (*asock->cb.on_accept_complete2)(asock, 870 accept_op->new_sock, 871 &accept_op->rem_addr, 872 accept_op->rem_addr_len, 873 status); 874 } else { 875 ret = (*asock->cb.on_accept_complete)(asock, 876 accept_op->new_sock, 877 &accept_op->rem_addr, 878 accept_op->rem_addr_len); 879 } 860 880 861 881 /* If callback returns false, we have been destroyed! */
Note: See TracChangeset
for help on using the changeset viewer.