Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
704c851d
Commit
704c851d
authored
Nov 05, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export and use ListenUDP
parent
ab48ec93
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
6 deletions
+9
-6
include/network.h
include/network.h
+1
-1
include/vlc_symbols.h
include/vlc_symbols.h
+3
-0
modules/access/mms/mmstu.c
modules/access/mms/mmstu.c
+2
-2
modules/control/netsync.c
modules/control/netsync.c
+1
-1
modules/stream_out/switcher.c
modules/stream_out/switcher.c
+1
-1
src/stream_output/sap.c
src/stream_output/sap.c
+1
-1
No files found.
include/network.h
View file @
704c851d
...
...
@@ -101,7 +101,7 @@ VLC_EXPORT( int, __net_Accept, ( vlc_object_t *, int *, mtime_t ) );
#define net_ConnectUDP(a, b, c, d ) __net_ConnectUDP(VLC_OBJECT(a), b, c, d)
VLC_EXPORT
(
int
,
__net_ConnectUDP
,
(
vlc_object_t
*
p_this
,
const
char
*
psz_host
,
int
i_port
,
int
hlim
)
);
int
net_ListenUDP1
(
vlc_object_t
*
obj
,
const
char
*
host
,
int
port
);
VLC_EXPORT
(
int
,
net_ListenUDP1
,
(
vlc_object_t
*
obj
,
const
char
*
host
,
int
port
)
);
#define net_OpenUDP(a, b, c, d, e ) __net_OpenUDP(VLC_OBJECT(a), b, c, d, e)
VLC_EXPORT
(
int
,
__net_OpenUDP
,
(
vlc_object_t
*
p_this
,
const
char
*
psz_bind
,
int
i_bind
,
const
char
*
psz_server
,
int
i_server
)
);
...
...
include/vlc_symbols.h
View file @
704c851d
...
...
@@ -554,6 +554,7 @@ struct module_symbols_t
void
(
*
config_ChainDestroy_inner
)
(
config_chain_t
*
);
char
*
(
*
config_ChainCreate_inner
)
(
char
**
,
config_chain_t
**
,
char
*
);
int
(
*
utf8_open_inner
)
(
const
char
*
filename
,
int
flags
,
mode_t
mode
);
int
(
*
net_ListenUDP1_inner
)
(
vlc_object_t
*
obj
,
const
char
*
host
,
int
port
);
};
# if defined (__PLUGIN__)
# define aout_FiltersCreatePipeline (p_symbols)->aout_FiltersCreatePipeline_inner
...
...
@@ -1031,6 +1032,7 @@ struct module_symbols_t
# define config_ChainDestroy (p_symbols)->config_ChainDestroy_inner
# define config_ChainCreate (p_symbols)->config_ChainCreate_inner
# define utf8_open (p_symbols)->utf8_open_inner
# define net_ListenUDP1 (p_symbols)->net_ListenUDP1_inner
# elif defined (HAVE_DYNAMIC_PLUGINS) && !defined (__BUILTIN__)
/******************************************************************
* STORE_SYMBOLS: store VLC APIs into p_symbols for plugin access.
...
...
@@ -1511,6 +1513,7 @@ struct module_symbols_t
((p_symbols)->config_ChainDestroy_inner) = config_ChainDestroy; \
((p_symbols)->config_ChainCreate_inner) = config_ChainCreate; \
((p_symbols)->utf8_open_inner) = utf8_open; \
((p_symbols)->net_ListenUDP1_inner) = net_ListenUDP1; \
(p_symbols)->net_ConvertIPv4_deprecated = NULL; \
(p_symbols)->__sout_CfgParse_deprecated = NULL; \
(p_symbols)->sout_CfgCreate_deprecated = NULL; \
...
...
modules/access/mms/mmstu.c
View file @
704c851d
...
...
@@ -480,8 +480,8 @@ static int MMSOpen( access_t *p_access, vlc_url_t *p_url, int i_proto )
return
VLC_EGENERIC
;
}
p_sys
->
i_handle_udp
=
net_
OpenUDP
(
p_access
,
p_sys
->
sz_bind_addr
,
7000
,
""
,
0
);
p_sys
->
i_handle_udp
=
net_
ListenUDP1
(
p_access
,
p_sys
->
sz_bind_addr
,
700
0
);
if
(
p_sys
->
i_handle_udp
<
0
)
{
msg_Err
(
p_access
,
"failed to open a connection (udp)"
);
...
...
modules/control/netsync.c
View file @
704c851d
...
...
@@ -144,7 +144,7 @@ static void Run( intf_thread_t *p_intf )
}
if
(
b_master
)
i_socket
=
net_
OpenUDP
(
p_intf
,
NULL
,
NETSYNC_PORT
,
NULL
,
0
);
i_socket
=
net_
ListenUDP1
(
p_intf
,
NULL
,
NETSYNC_PORT
);
else
i_socket
=
net_ConnectUDP
(
p_intf
,
psz_master
,
NETSYNC_PORT
,
0
);
...
...
modules/stream_out/switcher.c
View file @
704c851d
...
...
@@ -257,7 +257,7 @@ static int Open( vlc_object_t *p_this )
}
var_Get
(
p_stream
,
SOUT_CFG_PREFIX
"port"
,
&
val
);
p_sys
->
i_fd
=
net_
OpenUDP
(
p_stream
,
NULL
,
val
.
i_int
,
NULL
,
0
);
p_sys
->
i_fd
=
net_
ListenUDP1
(
p_stream
,
NULL
,
val
.
i_int
);
if
(
p_sys
->
i_fd
<
0
)
{
free
(
p_sys
);
...
...
src/stream_output/sap.c
View file @
704c851d
...
...
@@ -398,7 +398,7 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
if
(
p_sap
->
b_control
==
VLC_TRUE
)
{
p_address
->
i_rfd
=
net_
OpenUDP
(
p_sap
,
psz_addr
,
SAP_PORT
,
""
,
0
);
p_address
->
i_rfd
=
net_
ListenUDP1
(
p_sap
,
psz_addr
,
SAP_PORT
);
if
(
p_address
->
i_rfd
!=
-
1
)
net_StopSend
(
p_address
->
i_rfd
);
p_address
->
i_buff
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment