Thank you. I spoke with Tianrun yesterday. Harshad brought up the fact that
Zuyu might also have made changes in the distributed version which can be
ported back for our use in the single node world.

@Zuyu, is there distributed code that would be good to borrow instead of
rolling our own version?

On Thu, Mar 30, 2017 at 12:58 PM, Jianqiao <jianq...@cs.wisc.edu> wrote:

> Hi Marc,
>
> Tianrun had one implementation of the TCP Server interface when he was
> working on the GRAIL related stuff. The idea is to subclass the LineReader
> interface. This minimizes the changes needed inside QuickstepCli.cpp. The
> code might help and is available here:
>
> https://bitbucket.org/TianrunLi/tcpreader/src
>
> Best,
> Jianqiao
>
> 2017-03-30 10:10 GMT-05:00 Marc Spehlmann <sp...@apache.org>:
>
> > Hi dev,
> > I'm looking to make a simple TCP server interface to Quickstep so that we
> > can keep the db running while we communicate to it from a python program.
> > After investigating, I think the simplest way to do this is:
> >
> > - create a Server executable which:
> >   - opens a TCP socket
> >   - forks a child with an open pipe
> >     - std input of the child process is redirected from the pipe
> >     - child process launches the main() code of QuickstepCli and goes on
> as
> > normal
> >   - Server process channels messages from the TCP buffer to the pipe
> >   - Server exits when child exits
> >
> > Since I'd like to reuse the code in main() of quickstep_cli, I think this
> > means abstracting that code into a stand alone library.
> >
> > Does anyone have any initial comments on this design?
> >
> > --Marc
> >
>

Reply via email to