Changeset aa49a989d1957f5b198886c5a7ce0b617d5eca99
- 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
| rec7a0ab |
raa49a98 |
|
| 208 | 208 | |
|---|
| 209 | 209 | /* 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"); |
|---|
| 211 | 211 | if (iif != NULL) |
|---|
| 212 | 212 | { |
|---|
| … | … | |
| 421 | 421 | |
|---|
| 422 | 422 | if (((psz_bind == NULL) || (psz_bind[0] == '\0')) && (i_bind == 0)) |
|---|
| | 423 | { |
|---|
| 423 | 424 | msg_Warn (p_this, |
|---|
| 424 | 425 | "Obsolete net_OpenUDP with no local endpoint; " |
|---|
| 425 | 426 | "Use net_ConnectUDP instead"); |
|---|
| 426 | | |
|---|
| 427 | | #if 0 |
|---|
| | 427 | return net_ConnectUDP (p_this, psz_server, i_server, -1); |
|---|
| | 428 | } |
|---|
| | 429 | |
|---|
| 428 | 430 | if (((psz_server == NULL) || (psz_server[0] == '\0')) && (i_server == 0)) |
|---|
| | 431 | { |
|---|
| 429 | 432 | msg_Warn (p_this, |
|---|
| 430 | 433 | "Obsolete net_OpenUDP with no remote endpoint; " |
|---|
| 431 | 434 | "Use net_ListenUDP instead"); |
|---|
| 432 | | #endif |
|---|
| | 435 | return net_ListenUDP1 (p_this, psz_bind, i_bind); |
|---|
| | 436 | } |
|---|
| 433 | 437 | |
|---|
| 434 | 438 | if( psz_server == NULL ) psz_server = ""; |
|---|