bool Chat::detectingInstruct(string str)
{
if(str == "#Connected#") { if(isServer && RecSocket != NULL) { if(AllName.size() == 0) { RecSocket->SendData("#NoID#"); } string newName = SetName(); NameInRoom.push_back(newName); ShowName(); Room->Send("#ClearNameInRoom##end#"); for(vector::iterator itr = NameInRoom.begin(); itr != NameInRoom.end();itr++) Room->Send("#ShowName#" + *itr + "#end#"); RecSocket->SendData("#GetName#" + newName + "#end#"); } return true; }
This. . . First let me confirm if this is C++/CLI mode?