Enumerated the Client and Server

- Swapped all listed constants to enumerations.