Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
740f0fd5
Commit
740f0fd5
authored
Feb 05, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warning: Explicit kludge - parental advisory
Now, UDP-Lite really works!
parent
57dff762
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/network/io.c
src/network/io.c
+2
-3
No files found.
src/network/io.c
View file @
740f0fd5
...
@@ -123,7 +123,6 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host,
...
@@ -123,7 +123,6 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host,
memset
(
&
hints
,
0
,
sizeof
(
hints
));
memset
(
&
hints
,
0
,
sizeof
(
hints
));
hints
.
ai_family
=
family
;
hints
.
ai_family
=
family
;
hints
.
ai_socktype
=
socktype
;
hints
.
ai_socktype
=
socktype
;
hints
.
ai_protocol
=
protocol
;
hints
.
ai_flags
=
AI_PASSIVE
;
hints
.
ai_flags
=
AI_PASSIVE
;
msg_Dbg
(
p_this
,
"net: listening to %s port %d"
,
psz_host
,
i_port
);
msg_Dbg
(
p_this
,
"net: listening to %s port %d"
,
psz_host
,
i_port
);
...
@@ -142,7 +141,7 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host,
...
@@ -142,7 +141,7 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host,
for
(
struct
addrinfo
*
ptr
=
res
;
ptr
!=
NULL
;
ptr
=
ptr
->
ai_next
)
for
(
struct
addrinfo
*
ptr
=
res
;
ptr
!=
NULL
;
ptr
=
ptr
->
ai_next
)
{
{
int
fd
=
net_Socket
(
p_this
,
ptr
->
ai_family
,
ptr
->
ai_socktype
,
int
fd
=
net_Socket
(
p_this
,
ptr
->
ai_family
,
ptr
->
ai_socktype
,
ptr
->
ai_protocol
);
p
rotocol
?:
p
tr
->
ai_protocol
);
if
(
fd
==
-
1
)
if
(
fd
==
-
1
)
{
{
msg_Dbg
(
p_this
,
"socket error: %s"
,
net_strerror
(
net_errno
));
msg_Dbg
(
p_this
,
"socket error: %s"
,
net_strerror
(
net_errno
));
...
@@ -178,7 +177,7 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host,
...
@@ -178,7 +177,7 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host,
net_Close
(
fd
);
net_Close
(
fd
);
#if !defined(WIN32) && !defined(UNDER_CE)
#if !defined(WIN32) && !defined(UNDER_CE)
fd
=
rootwrap_bind
(
ptr
->
ai_family
,
ptr
->
ai_socktype
,
fd
=
rootwrap_bind
(
ptr
->
ai_family
,
ptr
->
ai_socktype
,
ptr
->
ai_protocol
,
ptr
->
ai_addr
,
p
rotocol
?:
p
tr
->
ai_protocol
,
ptr
->
ai_addr
,
ptr
->
ai_addrlen
);
ptr
->
ai_addrlen
);
if
(
fd
!=
-
1
)
if
(
fd
!=
-
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