- if(network_status == VCONFKEY_NETWORK_OFF){
- printf("Current network connection is OFF!! \n");
- SLOG(LOG_DEBUG, TAG_TTSD, "[Network] Current network connection is OFF.");
- }
- else{
- /*
- * This is the problem of network connection
- * Just terminate the application, network f/w will fix the problem automatically.
- */
- printf("network status is wrong or IP is not set\n");
- printf("network has problem, try again\n");
- return -1;
- }
-
- g_is_connected = false;
- } else {
- printf("Current network connection is ON. \n");
- SLOG(LOG_DEBUG, TAG_TTSD, "[Network] Current network connection is ON.");
+bool ttsd_network_is_connected()
+{
+ /* Check network */
+ int network_status = 0;
+ vconf_get_int(VCONFKEY_NETWORK_STATUS, &network_status);