Changeset ab48ec9308f1a15f5299b06e2e9c8073064c4ff1

Show
Ignore:
Timestamp:
05/11/06 20:30:16 (2 years ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1162755016 +0000
git-parent:

[1ed9a7d9b6e007cce723f02f4ce00d701e7ff2b2]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1162755016 +0000
Message:

Use ListenUDP

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/services_discovery/sap.c

    r465627a rab48ec9  
    12031203                       int i_port ) 
    12041204{ 
    1205     int i_fd = net_OpenUDP( p_sd, psz_address, i_port, NULL, 0 ); 
    1206  
    1207     if( i_fd != -1 ) 
    1208     { 
    1209         net_StopSend( i_fd ); 
    1210         INSERT_ELEM(  p_sd->p_sys->pi_fd, p_sd->p_sys->i_fd, 
    1211                       p_sd->p_sys->i_fd, i_fd ); 
    1212         return VLC_SUCCESS; 
    1213     } 
    1214  
    1215     return VLC_EGENERIC; 
     1205    int i_fd = net_ListenUDP1 ((vlc_object_t *)p_sd, psz_address, i_port); 
     1206    if (i_fd == -1) 
     1207        return VLC_EGENERIC; 
     1208 
     1209    net_StopSend( i_fd ); 
     1210    INSERT_ELEM (p_sd->p_sys->pi_fd, p_sd->p_sys->i_fd, 
     1211                 p_sd->p_sys->i_fd, i_fd); 
     1212    return VLC_SUCCESS; 
    12161213} 
    12171214