Hey Kenton,
once again thanks for your help here! I already looked into the HTTP
implementation, but as you said there is too much going on around it to
clearly separate the stream code without all the wrappers and factories
around it. As you already said I have just the receiving part here and
struggling a bit to get the sender part working correctly.
kj::Promise<void> pointStream(PointStreamContext context)
{
// get the callback provided by client
auto params = context.getParams();
streamCallback = kj::mv(params.getCallback());
// call next() in a loop ??
// call done() at the end ??
return kj::READY_NOW;
}
If someone can help me out here it would mean a lot! :)
As for sending the data in bigger chunks, this of cause would make sense.
This code if for testing the different candidates only so it does not
matter for now. Anyway thanks for the advice of cause!
Best regards
--
You received this message because you are subscribed to the Google Groups
"Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/capnproto/88b39da9-c582-4976-a07c-704a21833f87%40googlegroups.com.