This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3200 作为 Server 的多路复用



sockID = sock                            //  测得 sockID=16

bind

listen

FD_ZERO
FD_SET(sockID

while
{
      select

     ↓

      if ( FD_ISSET(read)!=0 )

      {            

                 newID =  accept                                             //           测得 newID=17

                  FD_SET(newID);

                    更新 maxfd

       }

     .....

}

第一次FD_SET(sockID), select对 sockID有反应, 等accept一个newID后, 并且FD_SET后, 有新的Cilent接入select也没有反应了, 只对newID有反应

是不是这里逻辑有什么不正确, 或者漏了什么什么环节!?