mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-23 00:00:06 +01:00

Adapt the event lib support slighly so we can pass an event lib "plugin" header in at context creation time, and direct all event loop handling to go via that. This can then be lightly adapted to interface to an existing custom event loop cleanly, without the problems of EXTERNAL_POLL. The external loop must consult with us about the max wait timeout as shown in the added minimal-http-server-eventlib-custom example. The example shows a complete implementation working with a custom poll() loop cleanly while only needing 5 ops in the custom event lib handler.
15 lines
357 B
HTML
15 lines
357 B
HTML
<html>
|
|
<head>
|
|
<meta charset=utf-8 http-equiv="Content-Language" content="en"/>
|
|
</head>
|
|
<body>
|
|
<img src="libwebsockets.org-logo.svg">
|
|
<img src="strict-csp.svg"><br>
|
|
|
|
Hello from the <b>minimal http server example</b>.
|
|
<br>
|
|
You can confirm the 404 page handler by going to this
|
|
nonexistant <a href="notextant.html">page</a>.
|
|
</body>
|
|
</html>
|
|
|