channels/cliprdr: move server cliprdr read code to separate function