Modules/cURL/curl pause: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
required_arguments      = * '''handler''' The curl handler
required_arguments      = * '''handler''' The curl handler
* '''bitmask''' An integer representing what you want to pause. Read more about this [[Modules/cURL/variables/CURLPAUSE|here]]|
* '''bitmask''' An integer representing what you want to pause. Read more about this [[Modules/cURL/variables/CURLPAUSE|here]]|
optional_arguments = * '''url''' The url which you want to connect too.|
optional_arguments = None|
returns = Returns a CURLcode, if everything is oke it returns CURLE_OK|
returns = Returns a CURLcode, if everything is oke it returns CURLE_OK|
example = <syntaxhighlight lang="lua">
example = <syntaxhighlight lang="lua">

Revision as of 09:05, 15 March 2012


Package-x-generic.png This function is provided by the external module cURL. You must install this module to use this function.

Pause a request or result

Syntax

CURLcode curl_pause(CURL handler, int bitmask)

Required arguments

  • handler The curl handler
  • bitmask An integer representing what you want to pause. Read more about this here

Optional arguments

None

Returns

Returns a CURLcode, if everything is oke it returns CURLE_OK

Example

curl_pause( curl, CURLPAUSE_RECV );
curl_perform( ... );

See also