Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tv42/childrpc
- Owner: tv42
- Created: 2010-10-09T17:05:22.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2013-04-16T16:36:42.000Z (over 11 years ago)
- Last Synced: 2024-10-16T02:08:00.479Z (2 months ago)
- Language: Go
- Homepage:
- Size: 102 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
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
./exampleYou 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