Ignore:
Timestamp:
Nov 6, 2005 1:32:11 PM (18 years ago)
Author:
bennylp
Message:

Put common ioqueue functionalities in separate file to be used by both select() and epoll

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/main/pjlib/include/pj/sock.h

    r4 r12  
    7070 
    7171/** 
    72  * Socket level specified in #pj_sock_setsockopt(). 
     72 * Socket level specified in #pj_sock_setsockopt() or #pj_sock_getsockopt(). 
    7373 * APPLICATION MUST USE THESE VALUES INSTEAD OF NORMAL SOL_*, BECAUSE 
    7474 * THE LIBRARY WILL TRANSLATE THE VALUE TO THE NATIVE VALUE. 
     
    7979extern const pj_uint16_t PJ_SOL_UDP;    /**< UDP level.     */ 
    8080extern 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 */ 
     86extern const pj_uint16_t PJ_SO_TYPE;    /**< Socket type.               */ 
     87extern const pj_uint16_t PJ_SO_RCVBUF;  /**< Buffer size for receive.   */ 
     88extern const pj_uint16_t PJ_SO_SNDBUF;  /**< Buffer size for send.      */ 
     89 
    8190 
    8291/** 
     
    540549 * @param sockfd        The socket descriptor. 
    541550 * @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. 
    544552 * @param optval        Identifies the buffer which the value will be 
    545553 *                      returned. 
     
    550558 */ 
    551559PJ_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, 
    554562                                         void *optval, 
    555563                                         int *optlen); 
     
    561569 * @param sockfd        The socket descriptor. 
    562570 * @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. 
    565572 * @param optval        Identifies the buffer which contain the value. 
    566573 * @param optlen        The length of the value. 
     
    569576 */ 
    570577PJ_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, 
    573580                                         const void *optval, 
    574581                                         int optlen); 
Note: See TracChangeset for help on using the changeset viewer.