libmicrohttpd
[Top][All Lists]
Advanced

[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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]