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
738e1f26
Commit
738e1f26
authored
Dec 05, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Use net_ConnectUDP on the slave side
- Don't force a port on the slave side (that was not needed)
parent
594dbde2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
modules/control/netsync.c
modules/control/netsync.c
+5
-6
No files found.
modules/control/netsync.c
View file @
738e1f26
...
...
@@ -41,8 +41,7 @@
#include "network.h"
#define NETSYNC_PORT_MASTER 9875
#define NETSYNC_PORT_SLAVE 9876
#define NETSYNC_PORT 9875
/* Needed for Solaris */
#ifndef INADDR_NONE
...
...
@@ -144,10 +143,10 @@ static void Run( intf_thread_t *p_intf )
}
}
i
_socket
=
net_OpenUDP
(
p_intf
,
NULL
,
b_master
?
NETSYNC_PORT_MASTER
:
NETSYNC_PORT_SLAVE
,
b_master
?
NULL
:
psz_master
,
b_master
?
0
:
NETSYNC_PORT_MASTER
);
i
f
(
b_master
)
i_socket
=
net_OpenUDP
(
p_intf
,
NULL
,
NETSYNC_PORT
,
NULL
,
0
);
else
i_socket
=
net_ConnectUDP
(
p_intf
,
psz_master
,
NETSYNC_PORT
,
0
);
if
(
psz_master
)
free
(
psz_master
);
...
...
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