1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/lib
Joakim Soderberg 4c53123677 CMake support + fixed windows build.
- Finalized CMake support (tested on windows only so far).
  - Uses a generated lws_config.h that is included in
  private-libwebsocket to pass defines, only used if CMAKE_BUILD is set.
  - Support for SSL on Windows.
  - Initial support for CyaSSL replacement of OpenSSL (This has been added
    to my older CMake-fork but haven't been tested on this version yet).
- Fixed windows build (see below for details).
- Fixed at least the 32-bit Debug build for the existing Visual Studio
  Project. (Not to keen fixing all the others when we have CMake support
  anyway (which can generate much better project files)...)
- BUGFIXES:
  - handshake.c
    - used C99 definition of handshake_0405 function
  - libwebsocket.c
    - syslog not available on windows, put in ifdefs.
    - Fixed previous known crash bug on Windows where WSAPoll in
      Ws2_32.dll would not be present, causing the poll function pointer
      being set to NULL.
    - Uninitialized variable context->listen_service_extraseen would
      result in stack overflow because of infinite recursion. Fixed by
      initializing in libwebsocket_create_context
    - SO_REUSADDR means something different on Windows compared to Unix.
    - Setting a socket to nonblocking is done differently on Windows.
      (This should probably broken out into a helper function instead)
    - lwsl_emit_syslog -> lwsl_emit_stderr on Windows.
  - private-libwebsocket.h
    - PATH_MAX is not available on Windows, define as MAX_PATH
    - Always define LWS_NO_DAEMONIZE on windows.
    - Don't define lws_latency as inline that does nothing. inline is not
      support by the Microsoft compiler, replaced with an empty define
      instead. (It's __inline in MSVC)
  - server.c
    - Fixed nonblock call on windows
  - test-ping.c
    - Don't use C99 features (Microsoft compiler does not support it).
    - Move non-win32 headers into ifdefs.
    - Skip use of sighandler on Windows.
  - test-server.c
    - ifdef syslog parts on Windows.
2013-02-06 15:49:12 +09:00
..
.gitignore Ignoring linux build files 2013-01-09 15:46:11 +08:00
base64-decode.c CMake support + fixed windows build. 2013-02-06 15:49:12 +09:00
client-handshake.c FreeBSD compatibility 2013-01-29 06:57:21 +08:00
client-parser.c unionize mutually exclusive wsi members 2013-01-21 11:06:34 +08:00
client.c roubustness handle problems in read loop better 2013-01-30 12:27:27 +08:00
daemonize.c trac 5 sa_restorer deprecated 2013-01-23 08:32:03 +08:00
extension-deflate-frame.c unionize mutually exclusive wsi members 2013-01-21 11:06:34 +08:00
extension-deflate-frame.h Separate compression levels for server and client, 2013-01-10 12:45:54 +08:00
extension-deflate-stream.c introduce logging api and convert all library output to use it 2013-01-10 22:16:37 +08:00
extension-deflate-stream.h Fixed deflate-stream extension. 2013-01-09 18:17:42 +08:00
extension.c deprecate x google mux 2013-01-17 19:53:16 +08:00
getifaddrs.c introduce getifaddrs for toolchains without it 2013-01-12 20:39:47 +08:00
getifaddrs.h introduce getifaddrs for toolchains without it 2013-01-12 20:39:47 +08:00
handshake.c CMake support + fixed windows build. 2013-02-06 15:49:12 +09:00
libwebsockets.c CMake support + fixed windows build. 2013-02-06 15:49:12 +09:00
libwebsockets.h remove one more mention of broadcast callback 2013-02-01 11:17:02 +08:00
Makefile.am introduce library version plus git hash 2013-02-01 10:50:15 +08:00
minilex.c add lexical parser for headers 2013-01-18 01:55:48 +08:00
output.c instrument latency 2013-01-30 08:49:12 +08:00
parsers.c unionize mutually exclusive wsi members 2013-01-21 11:06:34 +08:00
private-libwebsockets.h CMake support + fixed windows build. 2013-02-06 15:49:12 +09:00
server-handshake.c unionize mutually exclusive wsi members 2013-01-21 11:06:34 +08:00
server.c CMake support + fixed windows build. 2013-02-06 15:49:12 +09:00
sha-1.c Static variable is now const. 2013-01-09 15:14:31 +08:00