librnr/sockset.c
SockSet_T *SockSetNew()
{
  SockSet_T *pSockSet = NEW(SockSet_T);

  pSockSet->m_sdHighest = -1;

  FD_ZERO(&(pSockSet->m_sdSetSelect[SOCK_IO_READ]));
  FD_ZERO(&(pSockSet->m_sdSetSelect[SOCK_IO_WRITE]));
  FD_ZERO(&(pSockSet->m_sdSetActive[SOCK_IO_READ]));
  FD_ZERO(&(pSockSet->m_sdSetActive[SOCK_IO_WRITE]));
  FD_ZERO(&(pSockSet->m_sdSetOnHold[SOCK_IO_READ]));
  FD_ZERO(&(pSockSet->m_sdSetOnHold[SOCK_IO_WRITE]));

  return pSockSet;
}
/*!
 * \brief Allocate a new SockSet.
 *
 * \return Pointer to allocated SockSet.
 */
\brief Allocate a new SockSet.
\return Pointer to allocated SockSet.
\ brief Allocate a new SockSet . \ return Pointer to allocated SockSet .
SockSet_T *SockSetNew()
{
  SockSet_T *pSockSet = NEW(SockSet_T);
  pSockSet->m_sdHighest = -1;
  FD_ZERO(&(pSockSet->m_sdSetSelect[SOCK_IO_READ]));
  FD_ZERO(&(pSockSet->m_sdSetSelect[SOCK_IO_WRITE]));
  FD_ZERO(&(pSockSet->m_sdSetActive[SOCK_IO_READ]));
  FD_ZERO(&(pSockSet->m_sdSetActive[SOCK_IO_WRITE]));
  FD_ZERO(&(pSockSet->m_sdSetOnHold[SOCK_IO_READ]));
  FD_ZERO(&(pSockSet->m_sdSetOnHold[SOCK_IO_WRITE]));
  return pSockSet;
}
SockSet_T * SockSetNew ( ) { SockSet_T * pSockSet = NEW ( SockSet_T ) ; pSockSet -> m_sdHighest = -1 ; FD_ZERO ( & ( pSockSet -> m_sdSetSelect [ SOCK_IO_READ ] ) ) ; FD_ZERO ( & ( pSockSet -> m_sdSetSelect [ SOCK_IO_WRITE ] ) ) ; FD_ZERO ( & ( pSockSet -> m_sdSetActive [ SOCK_IO_READ ] ) ) ; FD_ZERO ( & ( pSockSet -> m_sdSetActive [ SOCK_IO_WRITE ] ) ) ; FD_ZERO ( & ( pSockSet -> m_sdSetOnHold [ SOCK_IO_READ ] ) ) ; FD_ZERO ( & ( pSockSet -> m_sdSetOnHold [ SOCK_IO_WRITE ] ) ) ; return pSockSet ; }
\brief Allocate a new SockSet.
\ brief Allocate a new SockSet .