one would think I could just pop a string in Brackets here: ircsocket.send((somestring),sizeof(somestring));
is there an easy way to do this its such a stupid thing to get stuck on, i have found plenty of people having trouble with it but they all forgot the right includes, what could be the issue??
Also sizeof() does not get you the length of the string, but the size of the variable. If 'output' is a pointer, then sizeof() will not give you want you want and will result in an undersized buffer. use strlen() instead.
If you are trying to copy a std::string to a char array just so that you can pass a const char* to send, you can get a const char* from std::string directly using c_str(). ircsocket.send(somestring.c_str(), somestring.size() + 1);
that wasn't sending for some reason peter, rather fascinatingly...using char something[strl(somestring)+1] was causeing my program to exit emidiatley!!!