Ignore:
Timestamp:
Mar 10, 2007 11:15:36 PM (17 years ago)
Author:
bennylp
Message:

Completed and tested (simple test) the TURN server and command line STUN/TURN client

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjstun-srv-test/usage.c

    r1049 r1054  
    8383        goto on_error; 
    8484 
    85     pj_memcpy(&usage->cb, cb, sizeof(*cb)); 
    86  
    8785    usage->type = type; 
    8886    status = pj_sock_socket(family, type, protocol, &usage->sock); 
     
    134132    pj_stun_server_register_usage(srv, usage); 
    135133 
     134    /* Only after everything has been initialized we copy the callback, 
     135     * to prevent callback from being called when we encounter error 
     136     * during initialiation (decendant would not expect this). 
     137     */ 
     138    pj_memcpy(&usage->cb, cb, sizeof(*cb)); 
     139 
    136140    *p_usage = usage; 
    137141    return PJ_SUCCESS; 
Note: See TracChangeset for help on using the changeset viewer.