Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
5f248960
Commit
5f248960
authored
Jul 01, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
This was pretty useless (if there is no solution, there is no problem)
parent
fae938e2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
43 deletions
+0
-43
modules/misc/network/ipv4.c
modules/misc/network/ipv4.c
+0
-25
modules/misc/network/ipv6.c
modules/misc/network/ipv6.c
+0
-18
No files found.
modules/misc/network/ipv4.c
View file @
5f248960
...
...
@@ -169,7 +169,6 @@ static int OpenUDP( vlc_object_t * p_this, network_socket_t * p_socket )
int
i_server_port
=
p_socket
->
i_server_port
;
int
i_handle
,
i_opt
;
socklen_t
i_opt_size
;
struct
sockaddr_in
sock
;
vlc_value_t
val
;
...
...
@@ -238,30 +237,6 @@ static int OpenUDP( vlc_object_t * p_this, network_socket_t * p_socket )
}
#endif
#if !defined( SYS_BEOS )
/* Check if we really got what we have asked for, because Linux, etc.
* will silently limit the max buffer size to net.core.rmem_max which
* is typically only 65535 bytes */
i_opt
=
0
;
i_opt_size
=
sizeof
(
i_opt
);
if
(
getsockopt
(
i_handle
,
SOL_SOCKET
,
SO_RCVBUF
,
(
void
*
)
&
i_opt
,
&
i_opt_size
)
==
-
1
)
{
#if defined(WIN32) || defined(UNDER_CE)
msg_Warn
(
p_this
,
"cannot query socket (SO_RCVBUF: %i)"
,
WSAGetLastError
()
);
#else
msg_Warn
(
p_this
,
"cannot query socket (SO_RCVBUF: %s)"
,
strerror
(
errno
)
);
#endif
}
else
if
(
i_opt
<
0x80000
)
{
msg_Dbg
(
p_this
,
"socket buffer size is 0x%x instead of 0x%x"
,
i_opt
,
0x80000
);
}
#endif
/* Build the local socket */
#if defined( WIN32 ) || defined( UNDER_CE )
...
...
modules/misc/network/ipv6.c
View file @
5f248960
...
...
@@ -138,7 +138,6 @@ static int OpenUDP( vlc_object_t * p_this )
const
char
*
psz_server_addr
=
p_socket
->
psz_server_addr
;
int
i_server_port
=
p_socket
->
i_server_port
;
int
i_handle
,
i_opt
;
socklen_t
i_opt_size
;
struct
sockaddr_in6
sock
;
vlc_value_t
val
;
...
...
@@ -184,23 +183,6 @@ static int OpenUDP( vlc_object_t * p_this )
strerror
(
errno
)
);
}
/* Check if we really got what we have asked for, because Linux, etc.
* will silently limit the max buffer size to net.core.rmem_max which
* is typically only 65535 bytes */
i_opt
=
0
;
i_opt_size
=
sizeof
(
i_opt
);
if
(
getsockopt
(
i_handle
,
SOL_SOCKET
,
SO_RCVBUF
,
(
void
*
)
&
i_opt
,
&
i_opt_size
)
==
-
1
)
{
msg_Warn
(
p_this
,
"cannot query socket (SO_RCVBUF: %s)"
,
strerror
(
errno
)
);
}
else
if
(
i_opt
<
0x80000
)
{
msg_Warn
(
p_this
,
"Socket buffer size is 0x%x instead of 0x%x"
,
i_opt
,
0x80000
);
}
/* Build the local socket */
if
(
BuildAddr
(
p_this
,
&
sock
,
psz_bind_addr
,
i_bind_port
)
==
-
1
)
{
...
...
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