Changeset 860 for pjproject/trunk


Ignore:
Timestamp:
Dec 25, 2006 6:39:33 AM (18 years ago)
Author:
bennylp
Message:

In relation to ticket #49: fix support for recv() flags such as PJ_MSG_PEEK and PJ_MSG_OOB etc

Location:
pjproject/trunk/pjlib
Files:
2 edited

Legend:

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

    r622 r860  
    103103 
    104104 
    105 /** 
     105/* 
    106106 * Flags to be specified in #pj_sock_recv, #pj_sock_send, etc. 
    107107 */ 
    108 typedef enum pj_sock_msg_flag 
    109 { 
    110     PJ_MSG_OOB          = 0x01,     /**< Out-of-band messages.           */ 
    111     PJ_MSG_PEEK         = 0x02,     /**< Peek, don't remove from buffer. */ 
    112     PJ_MSG_DONTROUTE    = 0x04      /**< Don't route.                    */ 
    113 } pj_sock_msg_flag; 
     108extern const int PJ_MSG_OOB;        /**< Out-of-band messages.           */ 
     109extern const int PJ_MSG_PEEK;       /**< Peek, don't remove from buffer. */ 
     110extern const int PJ_MSG_DONTROUTE;  /**< Don't route.                    */ 
    114111 
    115112 
  • pjproject/trunk/pjlib/src/pj/sock_bsd.c

    r582 r860  
    8383 
    8484 
     85/* recv() and send() flags */ 
     86const int PJ_MSG_OOB            = MSG_OOB; 
     87const int PJ_MSG_PEEK           = MSG_PEEK; 
     88const int PJ_MSG_DONTROUTE      = MSG_DONTROUTE; 
     89 
     90 
    8591#if defined(PJ_SOCKADDR_HAS_LEN) && PJ_SOCKADDR_HAS_LEN!=0 
    8692#   define SET_LEN(addr,len) (((pj_sockaddr*)(addr))->sa_zero_len=(len)) 
Note: See TracChangeset for help on using the changeset viewer.