Hi, Sorry, I don't really understand the question. The client calls `evaluate()` and passes a `Expression` of type `call` containing a `Function` capability. The server receives this expression, calls `getCall().getFunction()` to receive a `Function::Client`, which it can then use to invoke `Function.call()`.
-Kenton On Mon, Oct 28, 2019 at 5:41 AM 林晓锋 <[email protected]> wrote: > Hi ,all: > It's memtioned that "Make a request that will call back to a function > defined locally." at calculator-client.c++.I'm confused how and where the > server holds the function and when to call it. (I guess that it's in > the EventLoop::turn() by reading code ,but i'm not sure how it works) > > -- > 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/fc157425-7acb-43a7-845f-7a978e27526f%40googlegroups.com > <https://groups.google.com/d/msgid/capnproto/fc157425-7acb-43a7-845f-7a978e27526f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAJouXQmf_LDsgFa%2BGNPcdyTLo%3D2GtGv2JFFXfCX5esJdu3Wf7Q%40mail.gmail.com.
