Changeset 1914


Ignore:
Timestamp:
Apr 9, 2008 12:08:08 PM (11 years ago)
Author:
bennylp
Message:

Improve the PJNATH documentation

Location:
pjproject/trunk/pjnath
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/include/pjnath/turn_session.h

    r1913 r1914  
    309309 * Set credential to be used by the session. 
    310310 */ 
    311 PJ_DECL(pj_status_t) pj_turn_session_set_cred(pj_turn_session *sess, 
     311PJ_DECL(pj_status_t) pj_turn_session_set_credential(pj_turn_session *sess, 
    312312                                              const pj_stun_auth_cred *cred); 
    313313 
  • pjproject/trunk/pjnath/include/pjnath/types.h

    r1579 r1914  
    141141 *  
    142142 * 
     143 * \n 
     144 * 
     145 * \subsection PJNATH_STUN_CLASSES PJNATH Class Diagram 
     146 * 
     147 *  
     148 * \image html UML-class-diagram.png "Class Diagram" 
     149 * 
     150 * TBD: write descriptions. 
     151 * 
    143152 * \subsection PJNATH_STUN_USING Using STUN Library 
    144153 * 
     
    156165 * References for STUN: 
    157166 * 
    158  *  - <A HREF="http://www.ietf.org/internet-drafts/draft-ietf-behave-rfc3489bis-11.txt"> 
    159  *    <B>draft-ietf-behave-rfc3489bis-11</b></A>: Session Traversal  
     167 *  - <A HREF="http://www.ietf.org/internet-drafts/draft-ietf-behave-rfc3489bis-15.txt"> 
     168 *    <B>draft-ietf-behave-rfc3489bis-15</b></A>: Session Traversal  
    160169 *     Utilities for (NAT) (STUN), 
    161  *  - <A HREF="http://www.ietf.org/internet-drafts/draft-ietf-behave-turn-03.txt"> 
    162  *    <B>draft-ietf-behave-turn-03</B></A>: Obtaining Relay Addresses  
     170 *  - <A HREF="http://www.ietf.org/internet-drafts/draft-ietf-behave-turn-07.txt"> 
     171 *    <B>draft-ietf-behave-turn-07</B></A>: Obtaining Relay Addresses  
    163172 *    from Simple Traversal Underneath NAT (STUN) 
    164173 *  - Obsoleted: <A HREF="http://www.ietf.org/rfc/rfc3489.txt">RFC 3489</A>. 
  • pjproject/trunk/pjnath/src/pjnath/turn_session.c

    r1913 r1914  
    556556 * Set credential to be used by the session. 
    557557 */ 
    558 PJ_DEF(pj_status_t) pj_turn_session_set_cred(pj_turn_session *sess, 
     558PJ_DEF(pj_status_t) pj_turn_session_set_credential(pj_turn_session *sess, 
    559559                                             const pj_stun_auth_cred *cred) 
    560560{ 
    561561    PJ_ASSERT_RETURN(sess && cred, PJ_EINVAL); 
     562    PJ_ASSERT_RETURN(sess->stun, PJ_EINVALIDOP); 
    562563 
    563564    pj_lock_acquire(sess->lock); 
  • pjproject/trunk/pjnath/src/pjnath/turn_sock.c

    r1913 r1914  
    336336    /* Set credental */ 
    337337    if (cred) { 
    338         status = pj_turn_session_set_cred(turn_sock->sess, cred); 
     338        status = pj_turn_session_set_credential(turn_sock->sess, cred); 
    339339        if (status != PJ_SUCCESS) { 
    340340            sess_fail(turn_sock, "Error setting credential", status); 
  • pjproject/trunk/pjnath/src/pjturn-client/client_main.c

    r1913 r1914  
    420420                my_perror("turn_udp_bind_channel() failed", status); 
    421421            break; 
    422         case 'd': 
    423             pj_pool_factory_dump(&g.cp.factory, PJ_TRUE); 
    424             break; 
    425422        case 'x': 
    426423            if (g.relay == NULL) { 
Note: See TracChangeset for help on using the changeset viewer.