Changeset 43 for pjproject/main/pjsip/include/pjsip/sip_endpoint.h
- Timestamp:
- Nov 11, 2005 7:01:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/main/pjsip/include/pjsip/sip_endpoint.h
- Property svn:keywords set to Id
r38 r43 1 1 /* $Id$ 2 *3 2 */ 4 3 #ifndef __PJSIP_SIP_ENDPOINT_H__ … … 29 28 * all SIP objects in an application. It performs the following roles: 30 29 * - it manages the allocation/deallocation of memory pools for all objects. 31 * - it manages listeners and transports, and how they are used by transactions. 30 * - it manages listeners and transports, and how they are used by 31 * transactions. 32 32 * - it owns transaction hash table. 33 33 * - it receives incoming messages from transport layer and automatically … … 35 35 * - it has a single instance of timer management (timer heap). 36 36 * - it manages modules, which is the primary means of extending the library. 37 * - it provides single polling function for all objects and distributes events. 37 * - it provides single polling function for all objects and distributes 38 * events. 38 39 * - it provides SIP policy such as which outbound proxy to use for all 39 40 * outgoing SIP request messages. … … 50 51 /** 51 52 * Create an instance of SIP endpoint from the specified pool factory. 52 * The pool factory reference then will be kept by the endpoint, so that future 53 * memory allocations by SIP components will be taken from the same pool factory. 54 * 55 * @param pf Pool factory that will be used for the lifetime of endpoint. 56 * 57 * @return the endpoint instance on success. 58 */ 59 PJ_DECL(pjsip_endpoint*) pjsip_endpt_create(pj_pool_factory *pf); 53 * The pool factory reference then will be kept by the endpoint, so that 54 * future memory allocations by SIP components will be taken from the same 55 * pool factory. 56 * 57 * @param pf Pool factory that will be used for the lifetime of 58 * endpoint. 59 * @param name Optional name to be specified for the endpoint. 60 * If this parameter is NULL, then the name will use 61 * local host name. 62 * @param endpt Pointer to receive endpoint instance. 63 * 64 * @return PJ_SUCCESS on success. 65 */ 66 PJ_DECL(pj_status_t) pjsip_endpt_create(pj_pool_factory *pf, 67 pjsip_endpoint **endpt); 60 68 61 69 /** … … 67 75 */ 68 76 PJ_DECL(void) pjsip_endpt_destroy(pjsip_endpoint *endpt); 77 78 /** 79 * Get endpoint name. 80 * 81 * @param endpt The SIP endpoint instance. 82 * 83 * @return Endpoint name, as was registered during endpoint 84 * creation. The string is NULL terminated. 85 */ 86 PJ_DECL(const pj_str_t*) pjsip_endpt_name(const pjsip_endpoint *endpt); 69 87 70 88 /** … … 155 173 * 156 174 * @param endpt The SIP endpoint. 157 * @return The new transaction, or NULL on failure. 158 */ 159 PJ_DECL(pjsip_transaction*) pjsip_endpt_create_tsx(pjsip_endpoint *endpt); 175 * @param p_tsx Pointer to receive the transaction. 176 * 177 * @return PJ_SUCCESS or the appropriate error code. 178 */ 179 PJ_DECL(pj_status_t) pjsip_endpt_create_tsx(pjsip_endpoint *endpt, 180 pjsip_transaction **p_tsx); 160 181 161 182 /** … … 188 209 * This function, like all other endpoint functions, is thread safe. 189 210 * 190 * @param endpt the endpoint. 191 * @return new transmit data. 192 */ 193 PJ_DECL(pjsip_tx_data*) pjsip_endpt_create_tdata( pjsip_endpoint *endpt ); 211 * @param endpt The endpoint. 212 * @param p_tdata Pointer to receive transmit data buffer. 213 * 214 * @return PJ_SUCCESS or the appropriate error code. 215 */ 216 PJ_DECL(pj_status_t) pjsip_endpt_create_tdata( pjsip_endpoint *endpt, 217 pjsip_tx_data **p_tdata); 194 218 195 219 /** … … 333 357 334 358 /** 359 * Log an error. 360 */ 361 PJ_DECL(void) pjsip_endpt_log_error( pjsip_endpoint *endpt, 362 const char *sender, 363 pj_status_t error_code, 364 const char *format, 365 ... ); 366 367 #define PJSIP_ENDPT_LOG_ERROR(expr) \ 368 pjsip_endpt_log_error expr 369 370 #define PJSIP_ENDPT_TRACE(tracing,expr) \ 371 do { \ 372 if ((tracing)) \ 373 PJ_LOG(4,expr); \ 374 } while (0) 375 376 /** 335 377 * @} 336 378 */
Note: See TracChangeset
for help on using the changeset viewer.