-
- Downloads
introduce win32 build capability
This adds win32 build compatability to libwebsockets. The patch is from Peter Hinz, Andy Green has cleaned it up a bit and possibly broken win32 compatability since I can't test it, so there may be followup patches. It compiles fine under Linux after this patch anyway. Much of the patch is changing a reserved keyword for Visual C compiler "this" to "context", but there is no real C99 support in the MSFT compiler even though it is 2011 so C99 style array declarations have been mangled back into "ancient C" style. Some windows-isms are also added like closesocket() but these are quite localized. Win32 random is just using C library random() call at the moment vs Linux /dev/urandom. canonical hostname detection is broken in win32 at the moment. Signed-off-by:Peter Hinz <cerebusrc@gmail.com> Signed-off-by:
Andy Green <andy@warmcat.com>
Showing
- lib/client-handshake.c 17 additions, 13 deletionslib/client-handshake.c
- lib/handshake.c 5 additions, 4 deletionslib/handshake.c
- lib/libwebsockets.c 403 additions, 314 deletionslib/libwebsockets.c
- lib/libwebsockets.h 21 additions, 2 deletionslib/libwebsockets.h
- lib/parsers.c 30 additions, 27 deletionslib/parsers.c
- lib/private-libwebsockets.h 28 additions, 6 deletionslib/private-libwebsockets.h
- lib/sha-1.c 21 additions, 0 deletionslib/sha-1.c
- libwebsockets-api-doc.html 18 additions, 18 deletionslibwebsockets-api-doc.html
- test-server/test-client.c 12 additions, 10 deletionstest-server/test-client.c
- test-server/test-server-extpoll.c 15 additions, 15 deletionstest-server/test-server-extpoll.c
- test-server/test-server.c 36 additions, 36 deletionstest-server/test-server.c
- win32port/client/client.vcxproj 98 additions, 0 deletionswin32port/client/client.vcxproj
- win32port/client/client.vcxproj.filters 39 additions, 0 deletionswin32port/client/client.vcxproj.filters
- win32port/client/client.vcxproj.user 7 additions, 0 deletionswin32port/client/client.vcxproj.user
- win32port/libwebsocketswin32/libwebsocketswin32.vcxproj 89 additions, 0 deletionswin32port/libwebsocketswin32/libwebsocketswin32.vcxproj
- win32port/libwebsocketswin32/libwebsocketswin32.vcxproj.filters 48 additions, 0 deletions...ort/libwebsocketswin32/libwebsocketswin32.vcxproj.filters
- win32port/libwebsocketswin32/libwebsocketswin32.vcxproj.user 3 additions, 0 deletionswin32port/libwebsocketswin32/libwebsocketswin32.vcxproj.user
- win32port/server/server.vcxproj 106 additions, 0 deletionswin32port/server/server.vcxproj
- win32port/server/server.vcxproj.filters 51 additions, 0 deletionswin32port/server/server.vcxproj.filters
- win32port/server/server.vcxproj.user 3 additions, 0 deletionswin32port/server/server.vcxproj.user
Loading
Please register or sign in to comment