<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi all,<div><br></div><div>I'm trying to vend some kind of server that spawns a client-unique subprocess when a client connects. The server acts as a middleman, receiving structure messages from the client, sending input to the subprocess, and packaging up subprocess data before sending back to the client. The connection is long-lived and the client can continue to send "requests". If the subprocess crashes or dies, the server should be able to revive it transparently.</div><div><br></div><div>I know how to separately create server and subprocess protocols and having the event loop run either until completion, but what is the best way to chain two protocols together?</div><div><br></div><div><font face="Courier">|| Client || <~~ TCP ~~> || Server <--> Subprocess ||</font></div><div><br></div><div>Regards,</div><div>David</div></body></html>