[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] Protocol upgrade
From: |
Markus Doppelbauer |
Subject: |
[libmicrohttpd] Protocol upgrade |
Date: |
Sun, 13 Nov 2016 20:47:31 +0100 |
Hello,
Is the "protocol upgrade" API finalized? I can live with that, but this
way I need a second event loop. I would prefer an API where the MHD
event loop waits for websocket-data and - if new data arrives - calls
a handler. Something like:
MHD_SocketHandle *
MHD_create_response_for_upgrade(
MHD_UpgradeDataArrivedHandler read_handler, // when data is available
MHD_UpgradeSocketClosedHandler close_handler ); // when socket is closed
void
MHD_upgrade_write( MHD_SocketHandle *handle, void *data, size_t size );
void
MHD_upgrade_close( MHD_SocketHandle *handle );
Thanks a lot!
Markus
- [libmicrohttpd] Protocol upgrade,
Markus Doppelbauer <=
- Re: [libmicrohttpd] Protocol upgrade, Christian Grothoff, 2016/11/13
- Re: [libmicrohttpd] Protocol upgrade, Markus Doppelbauer, 2016/11/14
- Re: [libmicrohttpd] Protocol upgrade, Evgeny Grin, 2016/11/14
- Re: [libmicrohttpd] Protocol upgrade, Markus Doppelbauer, 2016/11/14
- Re: [libmicrohttpd] Protocol upgrade, Evgeny Grin, 2016/11/14
- Re: [libmicrohttpd] Protocol upgrade, Markus Doppelbauer, 2016/11/14
- Re: [libmicrohttpd] Protocol upgrade, Evgeny Grin, 2016/11/14
- Re: [libmicrohttpd] Protocol upgrade, Christian Grothoff, 2016/11/14
- Re: [libmicrohttpd] Protocol upgrade, Markus Doppelbauer, 2016/11/14
- Re: [libmicrohttpd] Protocol upgrade, Junker, Gregory, 2016/11/14