Changeset 4461 for pjproject/trunk/pjlib/include/pj/activesock.h
- Timestamp:
- Apr 5, 2013 3:02:19 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/activesock.h
r4359 r4461 133 133 /** 134 134 * This callback is called when new connection arrives as the result 135 * of pj_activesock_start_accept(). 135 * of pj_activesock_start_accept(). If the status of accept operation is 136 * needed use on_accept_complete2 instead of this callback. 136 137 * 137 138 * @param asock The active socket. … … 149 150 const pj_sockaddr_t *src_addr, 150 151 int src_addr_len); 152 153 /** 154 * This callback is called when new connection arrives as the result 155 * of pj_activesock_start_accept(). 156 * 157 * @param asock The active socket. 158 * @param newsock The new incoming socket. 159 * @param src_addr The source address of the connection. 160 * @param addr_len Length of the source address. 161 * @param status The status of the accept operation. This may contain 162 * non-PJ_SUCCESS for example when the TCP listener is in 163 * bad state for example on iOS platform after the 164 * application waking up from background. 165 * 166 * @return PJ_TRUE if further accept() is desired, and PJ_FALSE 167 * when application no longer wants to accept incoming 168 * connection. Application may destroy the active socket 169 * in the callback and return PJ_FALSE here. 170 */ 171 pj_bool_t (*on_accept_complete2)(pj_activesock_t *asock, 172 pj_sock_t newsock, 173 const pj_sockaddr_t *src_addr, 174 int src_addr_len, 175 pj_status_t status); 151 176 152 177 /**
Note: See TracChangeset
for help on using the changeset viewer.