Allow reading and writing messages from sockets in async mode
This commit is contained in:
committed by
Jacob Alexander
parent
d53aa24733
commit
8feb377217
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "capnp/dynamic.h"
|
||||
#include <kj/async-io.h>
|
||||
#include <capnp/serialize-async.h>
|
||||
#include <stdexcept>
|
||||
#include "Python.h"
|
||||
|
||||
@@ -147,4 +148,6 @@ inline kj::Exception makeException(kj::StringPtr message) {
|
||||
|
||||
kj::Promise<void> taskToPromise(kj::Own<PyRefCounter> coroutine, PyObject* callback);
|
||||
|
||||
::kj::Promise<kj::Own<PyRefCounter>> tryReadMessage(kj::AsyncIoStream& stream, capnp::ReaderOptions opts);
|
||||
|
||||
void init_capnp_api();
|
||||
|
||||
Reference in New Issue
Block a user