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
50a553fd
Commit
50a553fd
authored
Apr 29, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32: hack to fix some issues about listening on port (telnet, httpd)
parent
8de12711
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
src/network/io.c
src/network/io.c
+17
-0
No files found.
src/network/io.c
View file @
50a553fd
...
@@ -133,6 +133,23 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host,
...
@@ -133,6 +133,23 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host,
memset
(
&
hints
,
0
,
sizeof
(
hints
));
memset
(
&
hints
,
0
,
sizeof
(
hints
));
hints
.
ai_protocol
=
protocol
;
hints
.
ai_protocol
=
protocol
;
#ifdef WIN32
/*
* ! HACK !
* Win32 seems to have some issues when the socket type is not defined.
* As a hack we define it according to the protocol
*/
switch
(
protocol
)
{
case
IPPROTO_TCP
:
hints
.
ai_socktype
=
SOCK_STREAM
;
break
;
case
IPPROTO_UDP
:
hints
.
ai_socktype
=
SOCK_DGRAM
;
break
;
}
#endif
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
);
...
...
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