commit | 5a7b0c1adc4e16874fa37c00838b9b7695e26431 | [log] [tgz] |
---|---|---|
author | Matt Rosencrantz <mattr@google.com> | Wed Mar 18 09:43:40 2015 -0700 |
committer | Matt Rosencrantz <mattr@google.com> | Wed Mar 18 09:43:40 2015 -0700 |
tree | a2602160f38b6d3d463b9133b42eb4652b18db63 | |
parent | 1d92cafd0fba9d70b0ab76ac62f3ba0c065c5caf [diff] |
pipe2browser: Rename package ipc to rpc. We are doing this because rpc better describes what we are offering. Also now vrpc and rpc are more obviously related. This has the potential downside of being confused with the go rpc package but we believe the two packages will ralrely be used together.. MultiPart: 9/11 Change-Id: Ica7e75421fa93f7096c922d7b9990c4aaa6582f2
P2B allows one to pipe anything from shell console to the browser. Data being piped to the browser then is displayed in a graphical and formatted way by a “viewer” Viewers are pluggable pieces of code that know how to handle and display a stream of data.
For example one can do:
echo "Hi!" | p2b google/p2b/jane/console
or
cat cat.jpg | p2b -binary google/p2b/jane/image
where google/p2b/jane is the Object name where p2b service is running in the browser. The suffix console or image specifies what viewer should be used to display the data.
Please see the help page inside the P2B application for detailed tutorials.
To build make
To run make start #Starts a web server at 8080
and then navigate to http://localhost:8080
To stop simply Ctrl-C the console that started it
To clean make clean