In real life, use snappy http://code.google.com/p/snappy/
Atm snappy seems a bit more mature, though.
In real life, use snappy http://code.google.com/p/snappy/