platform/upstream/libwebsockets.git
10 years agorefactor use unified ssl read write functions
Andy Green [Sat, 5 Apr 2014 15:48:48 +0000 (16:48 +0100)]
refactor use unified ssl read write functions

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agorefactor add ssl read write single implementation
Andy Green [Sun, 6 Apr 2014 05:26:35 +0000 (06:26 +0100)]
refactor add ssl read write single implementation

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agowindows allow syslog log target to mao to stderr
Andy Green [Thu, 3 Apr 2014 15:34:09 +0000 (23:34 +0800)]
windows allow syslog log target to mao to stderr

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agowindows fix breakage from plat refactor
Andy Green [Thu, 3 Apr 2014 14:38:49 +0000 (22:38 +0800)]
windows fix breakage from plat refactor

Reported-by Marjan Tomas

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agowindows fix SetFilePointer args
Andy Green [Thu, 3 Apr 2014 11:52:37 +0000 (19:52 +0800)]
windows fix SetFilePointer args

This restricts it to 4GB files on 32-bit Windows but it'll do for now.

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agohttp2 add initial alpn support
Andy Green [Thu, 3 Apr 2014 06:33:48 +0000 (14:33 +0800)]
http2 add initial alpn support

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agorefactor ssl related code into ssl.c
Andy Green [Thu, 3 Apr 2014 02:17:00 +0000 (10:17 +0800)]
refactor ssl related code into ssl.c

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agoclean small additional ifdef reduction
Andy Green [Thu, 3 Apr 2014 02:11:04 +0000 (10:11 +0800)]
clean small additional ifdef reduction

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agorefactor handshake client and server handling into client.c and server.c
Andy Green [Thu, 3 Apr 2014 01:03:37 +0000 (09:03 +0800)]
refactor handshake client and server handling into client.c and server.c

Eliminate more #ifdefs

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agorefactor move flow control to server.c
Andy Green [Thu, 3 Apr 2014 00:40:05 +0000 (08:40 +0800)]
refactor move flow control to server.c

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agorefactor migrate client and server specific context init into client.c and server.c
Andy Green [Thu, 3 Apr 2014 00:24:29 +0000 (08:24 +0800)]
refactor migrate client and server specific context init into client.c and server.c

Eliminate some NO_CLIENT and NO_SERVER

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agorefactor pollfd related functions into pollfd.c
Andy Green [Wed, 2 Apr 2014 23:42:50 +0000 (07:42 +0800)]
refactor pollfd related functions into pollfd.c

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agorefactor service related functions into service.c
Andy Green [Wed, 2 Apr 2014 23:36:41 +0000 (07:36 +0800)]
refactor service related functions into service.c

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agorefactor context related functions into context.c
Andy Green [Wed, 2 Apr 2014 23:29:50 +0000 (07:29 +0800)]
refactor context related functions into context.c

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agoremove libev build tag
Andy Green [Wed, 2 Apr 2014 23:17:10 +0000 (07:17 +0800)]
remove libev build tag

It's told during context init if it uses libev or not in the logs

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agoclean move lws_plat externs
Andy Green [Wed, 2 Apr 2014 23:16:40 +0000 (07:16 +0800)]
clean move lws_plat externs

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agoipv6 use lws_plat_ to avoid win naming collision
Andy Green [Wed, 2 Apr 2014 15:03:23 +0000 (23:03 +0800)]
ipv6 use lws_plat_ to avoid win naming collision

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agowin32 inet_top
Andy Green [Wed, 2 Apr 2014 13:31:07 +0000 (21:31 +0800)]
win32 inet_top

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agochangelog add info about cmake needing clean build dir sometimes
Andy Green [Wed, 2 Apr 2014 13:18:11 +0000 (21:18 +0800)]
changelog add info about cmake needing clean build dir sometimes

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agoplat change to build selection by cmake
Andy Green [Wed, 2 Apr 2014 13:02:54 +0000 (21:02 +0800)]
plat change to build selection by cmake

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agorefactor out most NO_EXTENSIONS
Andy Green [Wed, 2 Apr 2014 11:45:42 +0000 (19:45 +0800)]
refactor out most NO_EXTENSIONS

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agorefactor out WIN32 tests from code
Andy Green [Wed, 2 Apr 2014 06:25:10 +0000 (14:25 +0800)]
refactor out WIN32 tests from code

This gets rid of all the platform-dependent #ifdef stuff and
migrates it into the new lws-plat-xxx.c files.

These are then included in a one-time test in libwebsockets.c
according basically to Windows or not.

The idea is from now on, all Windows-specific code should go in
lws-plat-win.c, where any kind of Windows perversion like DWORD
is fine.

Any new functions going in there should be named lws_plat_...
and be defined in all the lws-plat-xxx.c file (currently just
win32 and unix platforms are supported).

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agotruncated send issue independent of LWS_NO_EXTENSIONS 2
Andy Green [Tue, 1 Apr 2014 06:20:44 +0000 (14:20 +0800)]
truncated send issue independent of LWS_NO_EXTENSIONS 2

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agotruncated send issue independent of LWS_NO_EXTENSIONS
Andy Green [Tue, 1 Apr 2014 03:24:44 +0000 (11:24 +0800)]
truncated send issue independent of LWS_NO_EXTENSIONS

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agoonly use clean buffer for failed write if sent something
Andy Green [Tue, 1 Apr 2014 01:59:23 +0000 (09:59 +0800)]
only use clean buffer for failed write if sent something

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agolibev protect when disabled at runtime in server.c
Andy Green [Tue, 1 Apr 2014 00:36:36 +0000 (08:36 +0800)]
libev protect when disabled at runtime in server.c

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agowin32 clean remove leftover ifdef
Andy Green [Mon, 31 Mar 2014 14:03:09 +0000 (22:03 +0800)]
win32 clean remove leftover ifdef

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agofix libev build
Andy Green [Mon, 31 Mar 2014 06:42:56 +0000 (14:42 +0800)]
fix libev build

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agoclean libwebsockets.c
Andy Green [Mon, 31 Mar 2014 03:01:32 +0000 (11:01 +0800)]
clean libwebsockets.c

Signed-off-by: None <None>
10 years agoCleanup header includes
Patrick Gansterer [Sun, 30 Mar 2014 08:19:23 +0000 (10:19 +0200)]
Cleanup header includes

10 years agoRemove useless usage of ssize_t
Patrick Gansterer [Sun, 30 Mar 2014 08:18:51 +0000 (10:18 +0200)]
Remove useless usage of ssize_t

10 years agoWindows: Support LWS_POLLHUP socket event
Patrick Gansterer [Sun, 30 Mar 2014 07:54:55 +0000 (09:54 +0200)]
Windows: Support LWS_POLLHUP socket event

10 years agoIntroduce LWS_POLLIN, LWS_POLLOUT and LWS_POLLHUP
Patrick Gansterer [Sun, 30 Mar 2014 07:18:05 +0000 (09:18 +0200)]
Introduce LWS_POLLIN, LWS_POLLOUT and LWS_POLLHUP

10 years agoMerge branch 'tid' of https://github.com/paroga/libwebsockets
Andy Green [Sun, 30 Mar 2014 01:48:59 +0000 (09:48 +0800)]
Merge branch 'tid' of https://github.com/paroga/libwebsockets

10 years agoAdd missing resetting of the service_tid on Windows
Patrick Gansterer [Sat, 29 Mar 2014 08:34:24 +0000 (09:34 +0100)]
Add missing resetting of the service_tid on Windows

10 years agoRemove websock-w32.h
Patrick Gansterer [Sat, 29 Mar 2014 07:25:58 +0000 (08:25 +0100)]
Remove websock-w32.h

10 years agoMove #define for random() into the test applications where needed
Patrick Gansterer [Sat, 29 Mar 2014 07:05:07 +0000 (08:05 +0100)]
Move #define for random() into the test applications where needed

10 years agoRemove unreferenced local variable on Windows
Patrick Gansterer [Sat, 29 Mar 2014 06:52:37 +0000 (07:52 +0100)]
Remove unreferenced local variable on Windows

10 years agoUse Sleep() instead of usleep() on Windows
Patrick Gansterer [Sat, 29 Mar 2014 06:52:01 +0000 (07:52 +0100)]
Use Sleep() instead of usleep() on Windows

10 years agoRemove dummy headers for Windows
Patrick Gansterer [Sat, 29 Mar 2014 06:43:38 +0000 (07:43 +0100)]
Remove dummy headers for Windows

10 years agoRemove emulated_poll on Windows
Patrick Gansterer [Sat, 29 Mar 2014 06:15:40 +0000 (07:15 +0100)]
Remove emulated_poll on Windows

10 years agowindows Use WSAWaitForMultipleEvents() instead of poll() on Windows
Patrick Gansterer [Fri, 28 Mar 2014 14:44:56 +0000 (15:44 +0100)]
windows Use WSAWaitForMultipleEvents() instead of poll() on Windows

10 years agoBuild fixes for WindowsCE
Patrick Gansterer [Fri, 28 Mar 2014 17:09:20 +0000 (18:09 +0100)]
Build fixes for WindowsCE

10 years agoRemove duplicated code for setting the socket options
Patrick Gansterer [Fri, 28 Mar 2014 08:28:13 +0000 (09:28 +0100)]
Remove duplicated code for setting the socket options

10 years agoFix IPv6 on non-Linux platforms
Patrick Gansterer [Fri, 28 Mar 2014 07:28:02 +0000 (08:28 +0100)]
Fix IPv6 on non-Linux platforms

10 years agocyassl skip setting SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER
Andy Green [Fri, 28 Mar 2014 06:00:01 +0000 (14:00 +0800)]
cyassl skip setting SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER

It's already the default and no "SSL_set_mode" in CYASSL

Reported by Chris Conlon <chris@wolfssl.com>

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agoFix nonblocking connect on Windows
Patrick Gansterer [Thu, 27 Mar 2014 10:21:41 +0000 (11:21 +0100)]
Fix nonblocking connect on Windows

Use the correct value for the call to ioctlsocket() to set the socket to
nonblocking mode and check for WSAWOULDBLOCK return value of connect().

10 years agoipv6 client fix
Andy Green [Tue, 25 Mar 2014 06:08:21 +0000 (14:08 +0800)]
ipv6 client fix

noticed by James Devine

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agoipv6 integration fixes
Andy Green [Mon, 24 Mar 2014 08:09:25 +0000 (16:09 +0800)]
ipv6 integration fixes

Disable for build using -DLWS_IPV6= on the cmake line

10 years agoadd ipv6 support
James Devine [Mon, 24 Mar 2014 08:09:25 +0000 (16:09 +0800)]
add ipv6 support

(changed to support runtime disable + integration by andy@warmcat.com)

10 years agofix NO_EXTENSIONS
Andy Green [Sun, 23 Mar 2014 07:15:54 +0000 (15:15 +0800)]
fix NO_EXTENSIONS

reported by gaby64
https://github.com/warmcat/libwebsockets/issues/89#issuecomment-38375684

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agolibev port
Andrew Canaday [Sun, 23 Mar 2014 05:25:07 +0000 (13:25 +0800)]
libev port

merged by andy@warmcat.com via https://github.com/gaby64/libwebsockets-libev

To use, you need to both

 - cmake ---> -DLWS_USE_LIBEV=1

 - info->options must have LWS_SERVER_OPTION_LIBEV set when creating the context

this is so a single library can be built for distros to support apps that use
normal polling and apps that use libev polling.

10 years agotrac 58 ssl enable SNI per vhost certs
erauhut [Sun, 23 Mar 2014 04:24:40 +0000 (12:24 +0800)]
trac 58 ssl enable SNI per vhost certs

http://libwebsockets.org/trac/libwebsockets/ticket/58#no1

10 years agossl output handle want read write
Andy Green [Sun, 23 Mar 2014 04:02:52 +0000 (12:02 +0800)]
ssl output handle want read write

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agossl add SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER to server and client
Andy Green [Sun, 23 Mar 2014 03:53:07 +0000 (11:53 +0800)]
ssl add SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER to server and client

gaby64 at githib found this option is necessary when using SSL with the
truncated send support

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agotruncated send keep and grow truncation buffer
Andy Green [Sun, 23 Mar 2014 03:41:15 +0000 (11:41 +0800)]
truncated send keep and grow truncation buffer

Also change from looking at wsi->truncated_send_malloc to see if we are in the middle of
dealing with a truncated send to looking for nonzero wsi->truncated_send_len

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agoclean output.c a little
Andy Green [Sun, 23 Mar 2014 03:21:51 +0000 (11:21 +0800)]
clean output.c a little

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agononzero return from client parser is close
Andy Green [Mon, 17 Mar 2014 10:40:08 +0000 (18:40 +0800)]
nonzero return from client parser is close

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agossl client use OS CA root certs by default
Andy Green [Sat, 15 Mar 2014 02:39:29 +0000 (10:39 +0800)]
ssl client use OS CA root certs by default

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agoclient allow user callback to close on nonzero return
Andy Green [Sat, 15 Mar 2014 01:32:40 +0000 (09:32 +0800)]
client allow user callback to close on nonzero return

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agoupgrade and improve storage efficiency of minilex
Andy Green [Sun, 9 Mar 2014 03:49:21 +0000 (11:49 +0800)]
upgrade and improve storage efficiency of minilex

Until now minilex has done fine with providing a simple and fast header
decode state machine.  But for HTTP2.0, new headers must be added and it
is already on the limit of table branching in 1 byte (already using +0xf8
of a max limit of 0xff).

This changes the minilex format to improve storage size without loss of
decode efficiency.  It reduces the curent lws header table from 546 -> 403
bytes and upgrades the ability to increase table size by allowing jumps
to increase from the old limit of +255 states to +65535 states, which should
be enough for anything we ever want to do.

The max number of terminals is also increased from 128 to 2048.

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agoAdd libwebsocket_cancel_service() to let a pending libwebsocket_service() return
Patrick Gansterer [Thu, 6 Mar 2014 10:57:50 +0000 (11:57 +0100)]
Add libwebsocket_cancel_service() to let a pending libwebsocket_service() return

Use poll() with a pipe instead of ppoll() to allow the stop polling
on all UNIX platforms.

10 years agoopenwrt: add cyassl options, update to LWS_ cmake syntax
John Clark [Sun, 2 Mar 2014 21:27:10 +0000 (16:27 -0500)]
openwrt: add cyassl options, update to LWS_ cmake syntax

10 years agoFix installation into relative installation directory
Patrick Gansterer [Fri, 28 Feb 2014 15:29:28 +0000 (16:29 +0100)]
Fix installation into relative installation directory

This is required to make the other CPack generators like "ZIP" work.

10 years agoDefine libwebsocket_write_http as a macro instead of inline
Patrick Gansterer [Mon, 3 Mar 2014 11:21:20 +0000 (12:21 +0100)]
Define libwebsocket_write_http as a macro instead of inline

This solves two problems:
a) We do not need to use the keyword inline in the public header.
b) We avoid a possible warning about an unused static function.

10 years agowin32 provide empty declaration for inline
Andy Green [Sun, 2 Mar 2014 23:21:30 +0000 (07:21 +0800)]
win32 provide empty declaration for inline

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agoadd cyassl options, update to LWS_ cmake syntax
John Clark [Sun, 2 Mar 2014 21:27:10 +0000 (16:27 -0500)]
add cyassl options, update to LWS_ cmake syntax

10 years agoFix cyassl flags, update documentation
John Clark [Sun, 2 Mar 2014 03:24:47 +0000 (22:24 -0500)]
Fix cyassl flags, update documentation

10 years agoRemove duplicated implementations for bzero()
Patrick Gansterer [Fri, 28 Feb 2014 12:17:49 +0000 (13:17 +0100)]
Remove duplicated implementations for bzero()

Define bzero() in a central place if HAVE_BZERO is not set

10 years agoWSAGetLastError() instead of errno on Windows
Patrick Gansterer [Fri, 28 Feb 2014 11:37:52 +0000 (12:37 +0100)]
WSAGetLastError() instead of errno on Windows

Error codes set by Windows Sockets are not made available through the errno
variable. Checking them via WSAGetLastError() is the corret solution.

10 years agoCheck if getenv() exists
Patrick Gansterer [Fri, 28 Feb 2014 01:32:03 +0000 (02:32 +0100)]
Check if getenv() exists

Do not call getenv() on platform which do not support it

10 years agoAllow setting the HTTP proxy via creation info
Patrick Gansterer [Fri, 28 Feb 2014 01:31:23 +0000 (02:31 +0100)]
Allow setting the HTTP proxy via creation info

If the user provides a proxy via the info object it is used
in favor over the http_proxy environment variable.

10 years agofix missing include for time
Andy Green [Fri, 28 Feb 2014 01:09:17 +0000 (09:09 +0800)]
fix missing include for time

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agoEnable compilation on Windows CE
Patrick Gansterer [Fri, 28 Feb 2014 00:31:39 +0000 (01:31 +0100)]
Enable compilation on Windows CE

Add a few ifdefs to support this additional platform.

10 years agoCorrectly server non-ASCII filenames on Windows
Patrick Gansterer [Fri, 28 Feb 2014 00:29:28 +0000 (01:29 +0100)]
Correctly server non-ASCII filenames on Windows

Convert the filename from UTF-8 to UTF-16 and use CreateFileW() to open the file.

10 years agoAdd dummy implementation when strerror() is missing
Patrick Gansterer [Thu, 27 Feb 2014 23:59:53 +0000 (00:59 +0100)]
Add dummy implementation when strerror() is missing

Use a simple empty string for platforms without an implementation.

10 years agoCleanup include statements
Patrick Gansterer [Thu, 27 Feb 2014 23:57:19 +0000 (00:57 +0100)]
Cleanup include statements

Remove useless includes and add some preprocessor conditions for platform specific headers.

10 years agoFix type checks in CMake
Patrick Gansterer [Thu, 27 Feb 2014 23:42:08 +0000 (00:42 +0100)]
Fix type checks in CMake

Use CHECK_TYPE_SIZE to check existence of types.

10 years agoAdd explicit cast to setsockopt() calls
Patrick Gansterer [Thu, 27 Feb 2014 23:37:20 +0000 (00:37 +0100)]
Add explicit cast to setsockopt() calls

Implicit cast from size_t* to const char* throws an error on some compilers.

10 years agoFix Content-Type header of http status response
Patrick Gansterer [Thu, 27 Feb 2014 10:42:41 +0000 (11:42 +0100)]
Fix Content-Type header of http status response

The header for setting the mime type is called ‘Content-Type’ and not ‘Mime-Type’.

10 years agoUse native file functions on Windows
Patrick Gansterer [Thu, 27 Feb 2014 02:21:50 +0000 (03:21 +0100)]
Use native file functions on Windows

Add a special implementation with CreateFile(), ReadFile() and CloseFile()
for serving HTTP file request to allow compilation on all Windows platforms.

10 years agoRename leave to cleanup
Patrick Gansterer [Wed, 26 Feb 2014 20:56:59 +0000 (21:56 +0100)]
Rename leave to cleanup

The name ‘leave’ can not be used on some Windows CE platforms, so rename it.

10 years agoAvoid calls to gettimeofday()
Patrick Gansterer [Wed, 26 Feb 2014 20:37:31 +0000 (21:37 +0100)]
Avoid calls to gettimeofday()

Add a new function to get the current time in microseconds, since gettimeofday() does not exist on Windows.
Keep the current implementation for the test applications.

10 years agoReplace perror() with lwsl_warn()
Patrick Gansterer [Wed, 26 Feb 2014 18:52:11 +0000 (19:52 +0100)]
Replace perror() with lwsl_warn()

Use the general logging function for printing error messages.

10 years agoFix endian detection on non-linux systems
Patrick Gansterer [Wed, 26 Feb 2014 18:21:40 +0000 (19:21 +0100)]
Fix endian detection on non-linux systems

f975f736408f32e7384cf38270a7806e68d5e112 introduced inclusion of endian.h,
which is not a standard header. Only include it on Linux machines and
add similar includes for Apple and FreeBSD.

10 years agoAdd missing LWS_VISIBLE to libwebsocket_set_timeout()
Patrick Gansterer [Wed, 26 Feb 2014 17:51:05 +0000 (18:51 +0100)]
Add missing LWS_VISIBLE to libwebsocket_set_timeout()

This aligns it with the style of all other function declarations.

10 years agounconfuse quoting in CMakeLists.txtt
Andy Green [Wed, 26 Feb 2014 23:28:45 +0000 (07:28 +0800)]
unconfuse quoting in CMakeLists.txtt

via Marjan Tomas https://github.com/warmcat/libwebsockets/issues/67

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agorevert wrong fix visibility of return_http_status
Andy Green [Wed, 26 Feb 2014 23:19:21 +0000 (07:19 +0800)]
revert wrong fix visibility of return_http_status

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agoFix windows compilation.
Joakim Soderberg [Mon, 24 Feb 2014 17:23:00 +0000 (18:23 +0100)]
Fix windows compilation.

10 years agouse SO_REUSEADDR on windows since supposedly ok now
Gabriel Gritsch [Sat, 22 Feb 2014 10:00:28 +0000 (18:00 +0800)]
use SO_REUSEADDR on windows since supposedly ok now

10 years agofix visibility of return_http_status
Andy Green [Fri, 21 Feb 2014 10:51:38 +0000 (18:51 +0800)]
fix visibility of return_http_status

From "DevYourWorld" on github

https://github.com/warmcat/libwebsockets/issues/64#issuecomment-35720037

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agofix WITHOUT_CLIENT install in CMake
Andy Green [Fri, 21 Feb 2014 10:48:05 +0000 (18:48 +0800)]
fix WITHOUT_CLIENT install in CMake

Via "DevYourWorld" on github

https://github.com/warmcat/libwebsockets/issues/64#issuecomment-35719084

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agoupdate cmake opts in README.build
Andy Green [Fri, 21 Feb 2014 10:45:45 +0000 (18:45 +0800)]
update cmake opts in README.build

via "DevYourWorld" on github

https://github.com/warmcat/libwebsockets/issues/64

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agointerface_to_sa no longer server only
Andy Green [Fri, 21 Feb 2014 10:43:42 +0000 (18:43 +0800)]
interface_to_sa no longer server only

Via "DevYourWorld" on github

https://github.com/warmcat/libwebsockets/issues/64

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agoCall libwebsocket_set_timeout() before callback LWS_CALLBACK_HTTP.
Craig McQueen [Wed, 19 Feb 2014 23:27:11 +0000 (10:27 +1100)]
Call libwebsocket_set_timeout() before callback LWS_CALLBACK_HTTP.

This allows the LWS_CALLBACK_HTTP callback to override the timeout
with libwebsocket_set_timeout() if it wants.

10 years agoAdd support to binding client to interface.
Mattias Lundberg [Tue, 18 Feb 2014 09:06:57 +0000 (10:06 +0100)]
Add support to binding client to interface.

10 years agoFix compilation on Windows.
Joakim Soderberg [Tue, 18 Feb 2014 12:38:14 +0000 (13:38 +0100)]
Fix compilation on Windows.

C89 which Microsofts compiler only support does not allow variable
declarations anywhere but at the start of a scope.

Also, only try to copy the test-server files if they actually exists. For
instance the OpenSSL cert generation fails if you run cmake under the git
bash shell on Windows (won't work with the unix method either) so that
file will be missing... This would result in a compilation error when
tests where turned on.

10 years agoAdd LWS_VISIBLE to libwebsocket_set_timeout() so it can be used externally.
Craig McQueen [Tue, 18 Feb 2014 22:24:17 +0000 (09:24 +1100)]
Add LWS_VISIBLE to libwebsocket_set_timeout() so it can be used externally.

10 years agoadd missing CMake pieces
Andy Green [Sat, 15 Feb 2014 17:52:50 +0000 (01:52 +0800)]
add missing CMake pieces

Signed-off-by: Andy Green <andy.green@linaro.org>
10 years agodocument new extpoll apis
Michael Haberler [Sat, 15 Feb 2014 12:33:46 +0000 (20:33 +0800)]
document new extpoll apis