bcst: now forwarded to clients

This commit is contained in:
2019-06-10 17:20:56 +02:00
parent 6dbe2c26d8
commit eb6a202c71
2 changed files with 17 additions and 2 deletions

View File

@ -229,10 +229,10 @@ int main(int argc, char* argv[])
if(config.verbose)
{
std::cout<<"bcst: ";
for( int j = 6; j < reclen; j++ )std::cout<<inBuffer[j];
for( int j = 0; j < reclen; j++ )std::cout<<inBuffer[j];
std::cout<<std::endl;
}
for(unsigned int j = 0; j < clientSockets.size(); j++) if(i != j) clientSockets[j]->send(inBuffer+6, reclen-6);
for(unsigned int j = 0; j < clientSockets.size(); j++) if(i != j) clientSockets[j]->send(inBuffer, reclen);
}
else if(strncmp( inBuffer, "reinitsp", 8) == 0 && serial != -1)