Hello everyone , I want to send the same string many times with for(),but i've a problem :
with the code i want to send the string "hello" 5 times, but the cycle for, send 1 time the string, can you help me? Thanks
Code:
std::string hello = "hello";
for(int i = 0;i<5;i++){
send(socket[i],hello.c_str(),hello.size,0);
}