librnr/sock.c
bool_t SocketAttrHasFlavor(Socket_T *pSocket, int nMask, int nFlavor)
{
  CHKPTR(pSocket, false);

  // flavors only apply to open sockets
  if( pSocket->m_sd == SOCK_SD_CLOSED )
  {
    return false;
  }
  else
  {
    return ((int)(pSocket->m_eFlavor) & nMask) == nFlavor? true: false;
  }
}
/*!
 * \brief Check if Socket has an assigned flavor.
 *
 * \param pSocket   Pointer to Socket.
 * \param nMask     Flavor mask of relevant bits.
 * \param nFlavor   Flavor bits.
 *
 * \return Returns true or false.
 */
\brief Check if Socket has an assigned flavor.
\param pSocket   Pointer to Socket.
\param nMask     Flavor mask of relevant bits.
\param nFlavor   Flavor bits.

\return Returns true or false.
\ brief Check if Socket has an assigned flavor . \ param pSocket Pointer to Socket . \ param nMask Flavor mask of relevant bits . \ param nFlavor Flavor bits . \ return Returns true or false .
bool_t SocketAttrHasFlavor(Socket_T *pSocket, int nMask, int nFlavor)
{
  CHKPTR(pSocket, false);
  if( pSocket->m_sd == SOCK_SD_CLOSED )
  {
    return false;
  }
  else
  {
    return ((int)(pSocket->m_eFlavor) & nMask) == nFlavor? true: false;
  }
}
bool_t SocketAttrHasFlavor ( Socket_T * pSocket , int nMask , int nFlavor ) { CHKPTR ( pSocket , false ) ; if ( pSocket -> m_sd == SOCK_SD_CLOSED ) { return false ; } else { return ( ( int ) ( pSocket -> m_eFlavor ) & nMask ) == nFlavor ? true : false ; } }
\brief Check if Socket has an assigned flavor.
\ brief Check if Socket has an assigned flavor .
// flavors only apply to open sockets