mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 12:12:15 +02:00
ac158fd0bf
To support asynchronous command response, the virtual method omi_command_in() should now return a boolean. When omi_command_in() returns false, synchronous mode is chosen (the previous default). This means that omi_command_in() must emit "SUCCESS: ..." or "ERROR: ..." before it returns. When omi_command_in() returns true, the new asynchronous mode is chosen, and omi_command_in() may return before emitting SUCCESS or ERROR. In this mode, OMICore will pause the incoming command pipeline and not make any further calls to omi_command_in() until OMICore::async_done() is called. Signed-off-by: James Yonan <james@openvpn.net> |
||
---|---|---|
.. | ||
omi.hpp |