Realized about memory handling not allowed within switch statements and also needed static memory for the sockaddr struct (made static for now)