to help you C/S设计模式实现,java代码实现