Lines Matching refs:conn
89 static bool init(CURL *&conn, char *url) in init() argument
93 conn = curl_easy_init(); in init()
95 if(conn == NULL) { in init()
100 code = curl_easy_setopt(conn, CURLOPT_ERRORBUFFER, errorBuffer); in init()
106 code = curl_easy_setopt(conn, CURLOPT_URL, url); in init()
112 code = curl_easy_setopt(conn, CURLOPT_FOLLOWLOCATION, 1L); in init()
118 code = curl_easy_setopt(conn, CURLOPT_WRITEFUNCTION, writer); in init()
124 code = curl_easy_setopt(conn, CURLOPT_WRITEDATA, &buffer); in init()
259 CURL *conn = NULL; in main() local
274 if(!init(conn, argv[1])) { in main()
281 code = curl_easy_perform(conn); in main()
282 curl_easy_cleanup(conn); in main()