Hey all I need some help with setting information.
I receive data from client then I process it but for some reason when I get their username from a string. And Set a struct variable to keep it, the server crashes heres my processing code.
Code:string data =(string)SocketInfo->DataBuf.buf; string check = data.substr(0, 4); int loc = data.find( "@", 0 ); if(datanum[0][0].compare(check)==0){ SocketInfo->username = data.substr(4,loc-4); }