receive functions of rtypeserver codded.