Changeset 12 for pjproject/main/pjlib/include/pj/sock.h
- Timestamp:
- Nov 6, 2005 1:32:11 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/main/pjlib/include/pj/sock.h
r4 r12 70 70 71 71 /** 72 * Socket level specified in #pj_sock_setsockopt() .72 * Socket level specified in #pj_sock_setsockopt() or #pj_sock_getsockopt(). 73 73 * APPLICATION MUST USE THESE VALUES INSTEAD OF NORMAL SOL_*, BECAUSE 74 74 * THE LIBRARY WILL TRANSLATE THE VALUE TO THE NATIVE VALUE. … … 79 79 extern const pj_uint16_t PJ_SOL_UDP; /**< UDP level. */ 80 80 extern const pj_uint16_t PJ_SOL_IPV6; /**< IP version 6 */ 81 82 /** 83 * Values to be specified as \c optname when calling #pj_sock_setsockopt() 84 * or #pj_sock_getsockopt(). 85 */ 86 extern const pj_uint16_t PJ_SO_TYPE; /**< Socket type. */ 87 extern const pj_uint16_t PJ_SO_RCVBUF; /**< Buffer size for receive. */ 88 extern const pj_uint16_t PJ_SO_SNDBUF; /**< Buffer size for send. */ 89 81 90 82 91 /** … … 540 549 * @param sockfd The socket descriptor. 541 550 * @param level The level which to get the option from. 542 * @param optname The option name, which will be passed uninterpreted 543 * by the library. 551 * @param optname The option name. 544 552 * @param optval Identifies the buffer which the value will be 545 553 * returned. … … 550 558 */ 551 559 PJ_DECL(pj_status_t) pj_sock_getsockopt( pj_sock_t sockfd, 552 int level,553 int optname,560 pj_uint16_t level, 561 pj_uint16_t optname, 554 562 void *optval, 555 563 int *optlen); … … 561 569 * @param sockfd The socket descriptor. 562 570 * @param level The level which to get the option from. 563 * @param optname The option name, which will be passed uninterpreted 564 * by the library. 571 * @param optname The option name. 565 572 * @param optval Identifies the buffer which contain the value. 566 573 * @param optlen The length of the value. … … 569 576 */ 570 577 PJ_DECL(pj_status_t) pj_sock_setsockopt( pj_sock_t sockfd, 571 int level,572 int optname,578 pj_uint16_t level, 579 pj_uint16_t optname, 573 580 const void *optval, 574 581 int optlen);
Note: See TracChangeset
for help on using the changeset viewer.