Hey,

Another one of these things that's probably good design but somewhat 
puzzling.
How do I obtain a timer in my RPC server?
I found you need to get them from the async IO provider.
The easyrpc server has a method to get it, but then I'm stuck.
I need to somehow pass the timer to my server implementation, but before I 
create the RPC server I can't access the IO provider, and after I created 
the RPC server my implementation got moved into a private property.

Honestly maybe the answer is: if you need a timer in your RPC server you're 
doing it wrong. It's basically doing a waitloop on my work thread because I 
got stuck with my queue implementation. It seemed like it'd require a lot 
of overhead in copying and locking, while the waitloop just has to check 
one uncontested lock while the worker thread fills a vector. Basically what 
I need is an async Locked::wait(cond)

The second question is: I saw some release notes talking about a proxy not 
having to know the exact message format it's proxying, but is there 
actually a way to make a generic capnproto proxy? Similarly I saw a few 
mentions of HTTP and websocket stuff, but is there actually a way to use 
Capnproto over a websocket? I need none of that right now, but it's 
interesting to know what the options are.

Here is my project so far btw https://github.com/NyanCAD/SimServer
Thanks for all the help so far :)

Cheers,
Pepijn

-- 
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/d9072ac4-2751-4e9e-91f3-a27be38da0dbn%40googlegroups.com.

Reply via email to