Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
a4e6865c
Commit
a4e6865c
authored
Sep 09, 2006
by
Rémi Denis-Courmont
Browse files
Accept non-socket handles through net_Read* (closes #731)
parent
1a87ee6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/network/io.c
View file @
a4e6865c
...
...
@@ -222,7 +222,11 @@ receive:
if
((
*
vsv
)
!=
NULL
)
n
=
(
*
vsv
)
->
pf_recv
((
*
vsv
)
->
p_sys
,
buf
,
buflen
);
else
#if defined(WIN32) || defined(UNDER_CE)
n
=
recv
(
*
fdv
,
buf
,
buflen
,
0
);
#else
n
=
read
(
*
fdv
,
buf
,
buflen
);
#endif
if
(
n
==
-
1
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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