I'm in the middle of programming a socket class for myself, and I've been able to handle most of my problems without major grief. However, now I'm just not sure how to procede.
I've defined an operator<< for the class so I can send data via the socket much like stream output. The definition looks like this:SendData has been pretty well tested, so I'm sure it works. Now, whenever I do something like MyWinsock << "Hi", it works. Whenever I try something like MyWinsock << ThisString, it works. But when I try MyWinsock << "hi" << ThisString, it has lots of errors. I'm guessing I need to overload the operator<< again, but I'm not sure how. Any help?PHP Code:
void EZWinsock::operator<<(string a)