Thanks Kenton! I figured something out that seems to work well enough.
My Watchers now run a TwoPartyServer of their own. When they bind to a Performer they instead send a socket for the Performer to bind to. The Performer has another thread which handles sending out data to Watchers, and it connects to their servers in there. This thread is essentially waiting for the long running function to send it commands of either update data, or a server to bind to. It then calls the update capability of the Watchers. So while I have 2 connections from the client and server it solves the problem for now. -- 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.
