Update serve.c

add mouse receive progress to this programm,however, it still have some eorrs,I'll refresh it soon.