将Server.c做了分解，方便增加功能。加入了多线程框架work.c
Signed-off-by: lingzhi <lilingzhi22@gmail.com>