My suggestion of sockets was a lighter weight suggestion than using flask to start an httpserver and route full requests between processes. Maybe I am missing something from that example. But flask is an extremely heavy handed approach to getting to processes talking on the same machine. Especially when you have a parent child process relationship. That was why I ended up suggesting just a pipe when you are launching the process. A pipe, say using stdin, is like a socket connection that just gets connected automatically, with one end have a read side and one having a write side. That was why I had originally asked about the concrete problem, because an httpserver is completely reasonable under one circumstance a heavy in another. Same with a pipe being reasonable in one, and not feasible in another.
On Tue, 10 Mar 2015 12:03 AM Marcus Ottosson <[email protected]> wrote: > No problem, Justin. > > Also, I missed this. > > why not just use sockets? > > Sockets, as in starting another server within the client? Or are you > referring to a more light-weight way of utilising sockets here? The weight > of instantiating another server was one reason for not doing that initially. > > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" 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/python_inside_maya/CAFRtmOCcU2x9LERBt1nMaD89FYz7tnR1OCOxQqgUUAwrWpUDwg%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCcU2x9LERBt1nMaD89FYz7tnR1OCOxQqgUUAwrWpUDwg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" 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/python_inside_maya/CAPGFgA2bXCMuKZ-7_vEkoiMx879DLOc70Hyyc3XHHwppEfot_w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
