KRPC protocol implementation.