Interface for writing PlRPC clients and servers