Ignore:
Timestamp:
Mar 22, 2008 9:33:26 AM (17 years ago)
Author:
bennylp
Message:

Added comment about byte ordering in TURN CHANNEL-NUMBER attribute and modified select() parameter in TURN client

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjturn-client/client_main.c

    r1882 r1888  
    191191    while (!g.quit) { 
    192192        const pj_time_val delay = {0, 10}; 
    193         int i; 
     193        int i, n=0; 
    194194        pj_fd_set_t readset; 
    195195 
     
    204204        for (i=0; i<PJ_ARRAY_SIZE(g.peer); ++i) { 
    205205            PJ_FD_SET(g.peer[i].sock, &readset); 
     206            if (g.peer[i].sock > n) 
     207                n = g.peer[i].sock; 
    206208        } 
    207209 
    208         if (pj_sock_select(64, &readset, NULL, NULL, &delay) <= 0) 
     210        if (pj_sock_select(n+1, &readset, NULL, NULL, &delay) <= 0) 
    209211            continue; 
    210212 
Note: See TracChangeset for help on using the changeset viewer.