Given a generic Capnproto interface, such as:

interface Foo(X)
{
    bar @0 (baz :X);
}


How would one implement a server for Foo using pycapnp?

The following python code doesn't work, presumably as Foo.Server is not a 
concrete type:

class MyFoo(Foo.Server):
    def bar_context(self, ctx, **kwargs):
         pass


When I attempt to pass my server as an interface parameter, I get the error:

"failed: expected capability.getSchema(),extends(interfaceType); Value type 
mismatch."


I'd be happy to use a Foo(Any).Server, if that was all I could get...

Vaci


-- 
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/0e8ee233-f7a1-4bee-ad55-71c83225ffc4o%40googlegroups.com.

Reply via email to