Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
9ac67aed
Commit
9ac67aed
authored
Feb 19, 2010
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/network/udp.c: enlarge socket buffers to 1 second at 8Mbps
parent
02650b60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/network/udp.c
src/network/udp.c
+3
-3
No files found.
src/network/udp.c
View file @
9ac67aed
...
...
@@ -686,9 +686,9 @@ int __net_ConnectDgram( vlc_object_t *p_this, const char *psz_host, int i_port,
#if !defined( SYS_BEOS )
/* Increase the receive buffer size to 1/2MB (8Mb/s during 1/2s)
* to avoid packet loss caused by scheduling problems */
setsockopt
(
fd
,
SOL_SOCKET
,
SO_RCVBUF
,
&
(
int
){
0x
8
0000
},
sizeof
(
int
));
setsockopt
(
fd
,
SOL_SOCKET
,
SO_SNDBUF
,
&
(
int
){
0x
8
0000
},
sizeof
(
int
));
* to avoid packet loss caused by scheduling problems */
setsockopt
(
fd
,
SOL_SOCKET
,
SO_RCVBUF
,
&
(
int
){
0x
16
0000
},
sizeof
(
int
));
setsockopt
(
fd
,
SOL_SOCKET
,
SO_SNDBUF
,
&
(
int
){
0x
16
0000
},
sizeof
(
int
));
/* Allow broadcast sending */
setsockopt
(
fd
,
SOL_SOCKET
,
SO_BROADCAST
,
&
(
int
){
1
},
sizeof
(
int
));
...
...
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