libshoutcast.cpp
/**
 * @brief shout_stop Close opened connection to server, and free resource.
 *
 * @param shout
 * @return 1: closing connection success
 *         0: closing connection failure: the connection is already closed or shout handle is invalid
 *            all resource are anyway freed
 */
@brief shout_stop Close opened connection to server, and free resource.
@param shout
@return 1: closing connection success
0: closing connection failure: the connection is already closed or shout handle is invalid
all resource are anyway freed
@brief shout_stop Close opened connection to server and free resource . @param shout @return 1 : closing connection success 0 : closing connection failure : the connection is already closed or shout handle is invalid all resource are anyway freed
int shout_stop(shout_t *shout)
{
  bool success = 0;
  if (shout)
  {
    if (shout_close(shout)==SHOUTERR_SUCCESS)
    {
      success = 1; 
    }
    else
    {
      success = 0; 
    }
  }
  shout_shutdown();
  shout = 0;
  return success;
}
int shout_stop ( shout_t * shout ) { bool success = 0 ; if ( shout ) { if ( shout_close ( shout ) == SHOUTERR_SUCCESS ) { success = 1 ; } else { success = 0 ; } } shout_shutdown ( ) ; shout = 0 ; return success ; }
@brief shout_stop Close opened connection to server, and free resource.
@brief shout_stop Close opened connection to server and free resource .
// close success // close error