Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tv42/childrpc

Use Go's rpc package to talk to subprocesses
https://github.com/tv42/childrpc

Last synced: 20 days ago
JSON representation

Use Go's rpc package to talk to subprocesses

Awesome Lists containing this project

README

        

==========================================================
``childrpc`` -- use Go's ``rpc`` to talk to subprocesses
==========================================================

``github.com/tv42/childrpc`` is a utility package and demonstration of
how to use the ``net/rpc`` package to talk to things that are not
typical TCP/IP servers.

You will need to have the ``github.com/tv42/moreio`` package installed
for it to work.

The example provided does one round of a simple ping-pong
communication with the child process.

Here's how to run the example::

go get github.com/tv42/childrpc
cd $GOPATH/src/github.com/tv42/childrpc/example
go build
./example

You should see something like::

2013/04/16 09:33:15 parent mode
child: 2013/04/16 09:33:15 child mode
2013/04/16 09:33:15 got reply hello