[vlc-commits] commit: Revert "win32: hack to fix some issues about listening on port ( telnet, httpd)" ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Wed May 5 18:34:13 CEST 2010


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed May  5 19:32:25 2010 +0300| [6159a120a78f290538a40ae999100f412815cea3] | committer: Rémi Denis-Courmont 

Revert "win32: hack to fix some issues about listening on port (telnet, httpd)"

This reverts commit 50a553fdb2a5360f0722e8ef8ed82b3e57ac1aa4.
This should not be needed anymore.

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=6159a120a78f290538a40ae999100f412815cea3
---

 src/network/io.c |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/src/network/io.c b/src/network/io.c
index 107ca44..2e939db 100644
--- a/src/network/io.c
+++ b/src/network/io.c
@@ -134,23 +134,6 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host,
     memset (&hints, 0, sizeof( hints ));
     hints.ai_socktype = type;
     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;
 
     msg_Dbg (p_this, "net: listening to %s port %d", psz_host, i_port);



More information about the vlc-commits mailing list