Hi
At the moment I'm ill so I'm passing time by doing this so maybe in my current state of mind there's something I'm overlooking.
I have a class which stores the variables needed to construct a simple client socket the address is stored as a C++ string. I keep getting compiler error messages saying it can't convert from string to char * even though I'm castingwhat am I doing wrong here?Code:ServerAdd.sin_addr.s_addr = inet_addr((char *)address);
Thank you alll for your time.