Server running with all functions.TODO implement check date ,testing,implement different server types