- cleanup some network related code and try to remove uneeded noise

This commit is contained in:
SoftCoder
2013-12-18 23:35:27 -08:00
parent 86226c6702
commit 343a728911
4 changed files with 889 additions and 1177 deletions

View File

@@ -2943,7 +2943,8 @@ void BroadCastSocketThread::execute() {
//#else
// strncat(buff,port_string.c_str(),std::min((int)port_string.length(),100));
//#endif
snprintf(buff,1024,"%s:%s:%d",buff,ipList[idx1].c_str(),this->boundPort);
string buffCopy = buff;
snprintf(buff,1024,"%s:%s:%d",buffCopy.c_str(),ipList[idx1].c_str(),this->boundPort);
}
if(difftime((long int)time(NULL),elapsed) >= 1 && getQuitStatus() == false) {