Changeset 4817 for pjproject/trunk
- Timestamp:
- Apr 15, 2014 8:46:18 AM (11 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/sip_transport_tcp.h
r4506 r4817 205 205 ); 206 206 207 /** 208 * Retrieve the internal socket handle used by the TCP transport. Note 209 * that this socket normally is registered to ioqueue, so application 210 * needs to take care not to perform operation that disrupts ioqueue 211 * operation. 212 * 213 * @param transport The TCP transport. 214 * 215 * @return The socket handle, or PJ_INVALID_SOCKET if no socket 216 * is currently being used. 217 */ 218 PJ_DECL(pj_sock_t) pjsip_tcp_transport_get_socket(pjsip_transport *transport); 207 219 208 220 PJ_END_DECL -
pjproject/trunk/pjsip/src/pjsip/sip_transport_tcp.c
r4725 r4817 1479 1479 1480 1480 1481 PJ_DEF(pj_sock_t) pjsip_tcp_transport_get_socket(pjsip_transport *transport) 1482 { 1483 struct tcp_transport *tcp = (struct tcp_transport*)transport; 1484 1485 PJ_ASSERT_RETURN(transport, PJ_INVALID_SOCKET); 1486 return tcp->sock; 1487 } 1488 1489 1481 1490 #endif /* PJ_HAS_TCP */ 1482 1491
Note: See TracChangeset
for help on using the changeset viewer.