BOOL cg_bittorrent_client_start(CgBittorrentClient *cbc) { if (!cg_bittorrent_client_isready(cbc)) return FALSE; if (!cbc->httpServer) cg_http_server_start(cbc->httpServer); return TRUE; }
BOOL cg_http_serverlist_start(CgHttpServerList *httpServerList) { CgHttpServer *httpServer; cg_log_debug_l4("Entering...\n"); for (httpServer = cg_http_serverlist_gets(httpServerList); httpServer != NULL; httpServer = cg_http_server_next(httpServer)) cg_http_server_start(httpServer); cg_log_debug_l4("Leaving...\n"); return TRUE; }