src/cloud.c
void cloud_sessionConnect(CLOUD_SESSION_T *s)
{
   ssize_t retVal;

   if ((CLOUD_SESSION_IDLE != s->status) &&
       (CLOUD_SESSION_CREATE_SUCCESS != s->status) &&
       (CLOUD_SESSION_CONNECT_PENDING != s->status))
   {
      /*
       * Do not perform a send operation if the socket is not IDLE, FAILED,
       * CREATED or connect in progress.
       */
      return;
   }
   /* Initiate the session connection */
   if (CLOUD_SESSION_CONNECT_PENDING != s->status)
   {
      cloud_startConnect(s);
   }
   if ((CLOUD_SESSION_CONNECT_PENDING == s->status) ||
       (CLOUD_SESSION_CONNECT_SUCCESS == s->status))
   {
      cloud_finishConnect(s);
   }
}
//!
//! Wrapper function to perform a connect on a Cloud socket for non-blocking
//! operations. After connect() is called, a short blocking call to select() is
//! done to wait for the socket to be ready for write operations.
//!
//! @param[in] s socket handle number
//!

Wrapper function to perform a connect on a Cloud socket for non-blocking
operations. After connect() is called, a short blocking call to select() is
done to wait for the socket to be ready for write operations.
Wrapper function to perform a connect on a Cloud socket for non - blocking operations . After connect () is called a short blocking call to select () is done to wait for the socket to be ready for write operations .
void cloud_sessionConnect(CLOUD_SESSION_T *s)
{
   ssize_t retVal;
   if ((CLOUD_SESSION_IDLE != s->status) &&
       (CLOUD_SESSION_CREATE_SUCCESS != s->status) &&
       (CLOUD_SESSION_CONNECT_PENDING != s->status))
   {
      return;
   }
   if (CLOUD_SESSION_CONNECT_PENDING != s->status)
   {
      cloud_startConnect(s);
   }
   if ((CLOUD_SESSION_CONNECT_PENDING == s->status) ||
       (CLOUD_SESSION_CONNECT_SUCCESS == s->status))
   {
      cloud_finishConnect(s);
   }
}
void cloud_sessionConnect ( CLOUD_SESSION_T * s ) { ssize_t retVal ; if ( ( CLOUD_SESSION_IDLE != s -> status ) && ( CLOUD_SESSION_CREATE_SUCCESS != s -> status ) && ( CLOUD_SESSION_CONNECT_PENDING != s -> status ) ) { return ; } if ( CLOUD_SESSION_CONNECT_PENDING != s -> status ) { cloud_startConnect ( s ) ; } if ( ( CLOUD_SESSION_CONNECT_PENDING == s -> status ) || ( CLOUD_SESSION_CONNECT_SUCCESS == s -> status ) ) { cloud_finishConnect ( s ) ; } }
Wrapper function to perform a connect on a Cloud socket for non-blocking
operations.
Wrapper function to perform a connect on a Cloud socket for non - blocking operations .
/*
       * Do not perform a send operation if the socket is not IDLE, FAILED,
       * CREATED or connect in progress.
       */ /* Initiate the session connection */