src/cloud.c
static bool cloud_isSocketReady(CLOUD_SESSION_T *s)
{
   ssize_t retVal;
   socklen_t optLen;
   int optVal;

   optVal = -1;
   optLen = sizeof (optVal);
   retVal = getsockopt(s->handle, SOL_SOCKET, SO_ERROR, &optVal, &optLen);
   return ((retVal == 0) && (optVal == 0));
}
//!
//! Determine if the socket is ready.
//!

Determine if the socket is ready.
Determine if the socket is ready .
static bool cloud_isSocketReady(CLOUD_SESSION_T *s)
{
   ssize_t retVal;
   socklen_t optLen;
   int optVal;
   optVal = -1;
   optLen = sizeof (optVal);
   retVal = getsockopt(s->handle, SOL_SOCKET, SO_ERROR, &optVal, &optLen);
   return ((retVal == 0) && (optVal == 0));
}
static bool cloud_isSocketReady ( CLOUD_SESSION_T * s ) { ssize_t retVal ; socklen_t optLen ; int optVal ; optVal = -1 ; optLen = sizeof ( optVal ) ; retVal = getsockopt ( s -> handle , SOL_SOCKET , SO_ERROR , & optVal , & optLen ) ; return ( ( retVal == 0 ) && ( optVal == 0 ) ) ; }
Determine if the socket is ready.
Determine if the socket is ready .