object-oreinted
finishe the server codes,but it has not been tested