windows Fix build.
Update private-libwebsockets.h

fixes windows http file serve - macro compatible_file_read() incorrectly used 'amount' instead of '_amount'
define LWS_SSL_CAPPABLE return codes even when no SSL enabled

Reported by fuzzy
https://github.com/warmcat/libwebsockets/issues/107

Signed-off-by: Andy Green <andy.green@linaro.org>
move SNI temp var back one

Reported as making trouble on Windows by spayton

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

Signed-off-by: Andy Green <andy.green@linaro.org>
docs clarify create context comment threading not supported

Signed-off-by: Andy Green <andy.green@linaro.org>
inform timeout source when TIMEDOUT_WAITING

Signed-off-by: Andy Green <andy.green@linaro.org>
test server extend timeout while sending leaf

Signed-off-by: Andy Green <andy.green@linaro.org>
truncated send always callback on writeable

Suggested by a Windows log where leaf.jpg meets EAGAIN and after
issuing the truncated send buffer, never sends any more

https://github.com/warmcat/libwebsockets/issues/111#issuecomment-39873129

Added note in README.coding about WRITEABLE callbacks able to
be generated by lws.

Signed-off-by: Andy Green <andy.green@linaro.org>
clean=various ifdef reduction

Signed-off-by: Andy Green <andy.green@linaro.org>
close should flush any truncated send before really closing

Signed-off-by: Andy Green <andy.green@linaro.org>
fixup no extentsion around last clean

Signed-off-by: Andy Green <andy.green@linaro.org>
fixes for close flush

Signed-off-by: Andy Green <andy.green@linaro.org>
refactor libev eliminate all code ifdefs

Signed-off-by: Andy Green <andy.green@linaro.org>
refactor move ssl server service to ssl.c

Signed-off-by: Andy Green <andy.green@linaro.org>
windows ipv6 add necessary header

Thanks to Marjan and Joakim

https://github.com/warmcat/libwebsockets/issues/108#issuecomment-40075600

Signed-off-by: Andy Green <andy.green@linaro.org>
rxflow just return 0 when changing state

Nobody cares if we changed state, and callers are
increasingly taking nonzero as fail, causing us to
drop the connection when we re-enable rxflow.

Signed-off-by: Andy Green <andy.green@linaro.org>
Fix include statement of in6addr.h

Only include it when CMake can find it. This works with MinGW and WinCE.
Fix compilation on Windows CE after cleanup
Declare the lws_ssl_capable_*_no_ssl function outside the SSL #ifdef

This avoids a compiler warning about a not declared function.
Windows: Fix the passed parameter to the setsockopt function

This avoids compiler warnings about missmatched parameter types.