A rpc interface for any kind of transport layer