Changeset 1054 for pjproject/trunk/pjlib-util/src/pjstun-srv-test/usage.c
- Timestamp:
- Mar 10, 2007 11:15:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib-util/src/pjstun-srv-test/usage.c
r1049 r1054 83 83 goto on_error; 84 84 85 pj_memcpy(&usage->cb, cb, sizeof(*cb));86 87 85 usage->type = type; 88 86 status = pj_sock_socket(family, type, protocol, &usage->sock); … … 134 132 pj_stun_server_register_usage(srv, usage); 135 133 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 136 140 *p_usage = usage; 137 141 return PJ_SUCCESS;
Note: See TracChangeset
for help on using the changeset viewer.