Hi, I'm looking for a way to initialize a List<Text> as result of interface 
method. here is my interface design:

interface AccountManager {
    echo @0 (title: Text) -> (result: Text);
    list @1 ()        -> (accounts : List(Text));
    # get  @1 (title: Text) -> (account: Account);
}


also I use following code for my server implementation:

    ::kj::Promise<void> list(ListContext context) override {

        auto lst = capnp::List< capnp::Text>::Builder();
        lst.set(0, "reza");
        context.getResults().setAccounts(lst);

        return kj::READY_NOW;
    }


but I receive exception about list size in client. could anyone please help 
me about this error?

-- 
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].
Visit this group at https://groups.google.com/group/capnproto.

Reply via email to