librnr/sockset.c
static int SockSetFindHighestSd(SockSet_T *pSockSet)
{
  int   sd;
  int   sdHighest;

  for(sd=0, sdHighest=-1; sd <= pSockSet->m_sdHighest; ++sd)
  {
    if(   fdisset_nowarn(sd, &(pSockSet->m_sdSetActive[SOCK_IO_READ]))
       || fdisset_nowarn(sd, &(pSockSet->m_sdSetActive[SOCK_IO_WRITE])) )
    {
      if( sd > sdHighest )
      {
        sdHighest = sd;
      }
    }
  }

  return sdHighest;
}
/*! 
 * \brief Find the highest socket descriptor number in the Active subset.
 *
 * \param pSockSet  Pointer to socket set.
 *
 * \return Highest socket descriptor. -1 if none found.
 */
\brief Find the highest socket descriptor number in the Active subset.
\param pSockSet  Pointer to socket set.

\return Highest socket descriptor. -1 if none found.
\ brief Find the highest socket descriptor number in the Active subset . \ param pSockSet Pointer to socket set . \ return Highest socket descriptor . - 1 if none found .
static int SockSetFindHighestSd(SockSet_T *pSockSet)
{
  int   sd;
  int   sdHighest;
  for(sd=0, sdHighest=-1; sd <= pSockSet->m_sdHighest; ++sd)
  {
    if(   fdisset_nowarn(sd, &(pSockSet->m_sdSetActive[SOCK_IO_READ]))
       || fdisset_nowarn(sd, &(pSockSet->m_sdSetActive[SOCK_IO_WRITE])) )
    {
      if( sd > sdHighest )
      {
        sdHighest = sd;
      }
    }
  }
  return sdHighest;
}
static int SockSetFindHighestSd ( SockSet_T * pSockSet ) { int sd ; int sdHighest ; for ( sd = 0 , sdHighest = -1 ; sd <= pSockSet -> m_sdHighest ; ++ sd ) { if ( fdisset_nowarn ( sd , & ( pSockSet -> m_sdSetActive [ SOCK_IO_READ ] ) ) || fdisset_nowarn ( sd , & ( pSockSet -> m_sdSetActive [ SOCK_IO_WRITE ] ) ) ) { if ( sd > sdHighest ) { sdHighest = sd ; } } } return sdHighest ; }
\brief Find the highest socket descriptor number in the Active subset.
\ brief Find the highest socket descriptor number in the Active subset .