Changeset aa49a989d1957f5b198886c5a7ce0b617d5eca99

Show
Ignore:
Timestamp:
23/11/06 12:12:49 (2 years ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1164280369 +0000
git-parent:

[3c0cdc7975790622cde033ca81b7ca9508c70fc6]

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

Use net_ListenUDP1 and net_ConnectUDP when possible

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/network/udp.c

    rec7a0ab raa49a98  
    208208 
    209209            /* FIXME: should use a different option for in and out */ 
    210             char *iif = config_GetPsz (obj, "miface-addr"); 
     210            char *iif = var_CreateGetString (obj, "miface-addr"); 
    211211            if (iif != NULL) 
    212212            { 
     
    421421 
    422422    if (((psz_bind == NULL) || (psz_bind[0] == '\0')) && (i_bind == 0)) 
     423    { 
    423424        msg_Warn (p_this, 
    424425                  "Obsolete net_OpenUDP with no local endpoint; " 
    425426                  "Use net_ConnectUDP instead"); 
    426  
    427 #if 0 
     427        return net_ConnectUDP (p_this, psz_server, i_server, -1); 
     428    } 
     429 
    428430    if (((psz_server == NULL) || (psz_server[0] == '\0')) && (i_server == 0)) 
     431    { 
    429432        msg_Warn (p_this, 
    430433                  "Obsolete net_OpenUDP with no remote endpoint; " 
    431434                  "Use net_ListenUDP instead"); 
    432 #endif 
     435        return net_ListenUDP1 (p_this, psz_bind, i_bind); 
     436    } 
    433437 
    434438    if( psz_server == NULL ) psz_server = "";