Ignore:
Timestamp:
Mar 8, 2007 6:58:04 PM (17 years ago)
Author:
bennylp
Message:

A really initial implementation on STUN server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/include/pjlib-util/stun_msg.h

    r1037 r1049  
    339339    PJ_STUN_ATTR_REALM              = 0x0014,/**< REALM attribute.          */ 
    340340    PJ_STUN_ATTR_NONCE              = 0x0015,/**< NONCE attribute.          */ 
    341     PJ_STUN_ATTR_RELAY_ADDRESS      = 0x0016,/**< RELAY-ADDRESS attribute.  */ 
    342     PJ_STUN_ATTR_REQUESTED_ADDR_TYPE= 0x0017,/**< REQUESTED-ADDRESS-TYPE    */ 
    343     PJ_STUN_ATTR_REQUESTED_PORT_PROPS=0x0018,/**< REQUESTED-PORT-PROPS      */ 
    344     PJ_STUN_ATTR_REQUESTED_TRANSPORT= 0x0019,/**< REQUESTED-TRANSPORT       */ 
    345     PJ_STUN_ATTR_XOR_MAPPED_ADDRESS = 0x0020,/**< XOR-MAPPED-ADDRESS        */ 
     341    PJ_STUN_ATTR_RELAY_ADDR         = 0x0016,/**< RELAY-ADDRESS attribute.  */ 
     342    PJ_STUN_ATTR_REQ_ADDR_TYPE      = 0x0017,/**< REQUESTED-ADDRESS-TYPE    */ 
     343    PJ_STUN_ATTR_REQ_PORT_PROPS     = 0x0018,/**< REQUESTED-PORT-PROPS      */ 
     344    PJ_STUN_ATTR_REQ_TRANSPORT      = 0x0019,/**< REQUESTED-TRANSPORT       */ 
     345    PJ_STUN_ATTR_XOR_MAPPED_ADDR    = 0x0020,/**< XOR-MAPPED-ADDRESS        */ 
    346346    PJ_STUN_ATTR_TIMER_VAL          = 0x0021,/**< TIMER-VAL attribute.      */ 
    347     PJ_STUN_ATTR_REQUESTED_IP       = 0x0022,/**< REQUESTED-IP attribute    */ 
     347    PJ_STUN_ATTR_REQ_IP             = 0x0022,/**< REQUESTED-IP attribute    */ 
    348348    PJ_STUN_ATTR_XOR_REFLECTED_FROM = 0x0023,/**< XOR-REFLECTED-FROM        */ 
    349349    PJ_STUN_ATTR_PRIORITY           = 0x0024,/**< PRIORITY                  */ 
     
    391391    PJ_STUN_STATUS_CONNECTION_FAILURE       = 446,  /**< Connection Failure */ 
    392392    PJ_STUN_STATUS_CONNECTION_TIMEOUT       = 447,  /**< Connection Timeout */ 
     393    PJ_STUN_STATUS_ALLOCATION_QUOTA_REACHED = 486,  /**< Allocation Quota Reached (TURN) */ 
    393394    PJ_STUN_STATUS_SERVER_ERROR             = 500,  /**< Server Error       */ 
     395    PJ_STUN_STATUS_INSUFFICIENT_CAPACITY    = 507,  /**< Insufficient Capacity (TURN) */ 
    394396    PJ_STUN_STATUS_GLOBAL_FAILURE           = 600   /**< Global Failure     */ 
    395397} pj_stun_status; 
     
    934936 \endverbatim 
    935937 */ 
    936 typedef struct pj_stun_uint_attr pj_stun_requested_addr_type; 
     938typedef struct pj_stun_uint_attr pj_stun_req_addr_type; 
    937939 
    938940/** 
     
    954956 \endverbatim   
    955957 */ 
    956 typedef struct pj_stun_uint_attr pj_stun_requested_port_props_attr; 
     958typedef struct pj_stun_uint_attr pj_stun_req_port_props_attr; 
    957959 
    958960 
     
    963965 * unsigned integer.  Its values are: 0x0000 for UDP and 0x0000 for TCP. 
    964966 */ 
    965 typedef struct pj_stun_uint_attr pj_stun_requested_transport_attr; 
     967typedef struct pj_stun_uint_attr pj_stun_req_transport_attr; 
    966968 
    967969 
     
    971973 * specific IP address be allocated to it. 
    972974 */ 
    973 typedef struct pj_stun_ip_addr_attr pj_stun_requested_ip_attr; 
     975typedef struct pj_stun_ip_addr_attr pj_stun_req_ip_attr; 
    974976 
    975977/** 
Note: See TracChangeset for help on using the changeset viewer.