📄 curl_global_init.3
字号:
.\" You can view this file with:.\" nroff -man [file].\" $Id: curl_global_init.3,v 1.1 2002/03/04 10:09:49 bagder Exp $.\".TH curl_global_init 3 "13 Nov 2001" "libcurl 7.9.1" "libcurl Manual".SH NAMEcurl_global_init - Global libcurl initialisation.SH SYNOPSIS.B #include <curl/curl.h>.sp.BI "CURLcode curl_global_init(long " flags ");".ad.SH DESCRIPTIONThis function should only be called once (no matter how many threads orlibcurl sessions that'll be used) by every application that uses libcurl.If this function hasn't been invoked when \fIcurl_easy_init\fP is called, itwill be done automatically by libcurl.The flags option is a bit pattern that tells libcurl exact what features toinit, as described below. Set the desired bits by ORing the values together.You must however \fBalways\fP use the \fIcurl_global_cleanup\fP function, asthat cannot be called automatically for you by libcurl.Calling this function more than once will cause unpredictable results.This function was added in libcurl 7.8..SH FLAGS.TP 5.B CURL_GLOBAL_ALLInitialize everything possible. This sets all known bits..TP.B CURL_GLOBAL_SSLInitialize SSL.TP.B CURL_GLOBAL_WIN32Initialize the Win32 socket libraries. (added in libcurl 7.8.1).TP.B CURL_GLOBAL_NOTHINGInitialise nothing extra. This sets no bit..SH RETURN VALUEIf this function returns non-zero, something went wrong and you cannot use theother curl functions..SH "SEE ALSO".BR curl_global_cleanup "(3), ".SH BUGSNone.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -