Server now sends a struct back to the client based on the clients request type. Client prints the returned data.