2
0

CURLSHOPT_UNSHARE.3 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. .\" **************************************************************************
  2. .\" * _ _ ____ _
  3. .\" * Project ___| | | | _ \| |
  4. .\" * / __| | | | |_) | |
  5. .\" * | (__| |_| | _ <| |___
  6. .\" * \___|\___/|_| \_\_____|
  7. .\" *
  8. .\" * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
  9. .\" *
  10. .\" * This software is licensed as described in the file COPYING, which
  11. .\" * you should have received as part of this distribution. The terms
  12. .\" * are also available at https://curl.se/docs/copyright.html.
  13. .\" *
  14. .\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
  15. .\" * copies of the Software, and permit persons to whom the Software is
  16. .\" * furnished to do so, under the terms of the COPYING file.
  17. .\" *
  18. .\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
  19. .\" * KIND, either express or implied.
  20. .\" *
  21. .\" * SPDX-License-Identifier: curl
  22. .\" *
  23. .\" **************************************************************************
  24. .TH CURLSHOPT_UNSHARE 3 "8 Aug 2003" libcurl libcurl
  25. .SH NAME
  26. CURLSHOPT_UNSHARE - remove data to share
  27. .SH SYNOPSIS
  28. .nf
  29. #include <curl/curl.h>
  30. CURLSHcode curl_share_setopt(CURLSH *share, CURLSHOPT_UNSHARE, long type);
  31. .fi
  32. .SH DESCRIPTION
  33. The \fItype\fP parameter specifies what specific data that should no longer be
  34. shared and kept in the share object that was created with
  35. \fIcurl_share_init(3)\fP. In other words, stop sharing that data in this
  36. shared object. The given \fItype\fP must be be one of the values described
  37. below. You can set \fICURLSHOPT_UNSHARE(3)\fP multiple times with different
  38. data arguments to remove multiple types from the shared object. Add data to
  39. share again with \fICURLSHOPT_SHARE(3)\fP.
  40. .IP CURL_LOCK_DATA_COOKIE
  41. Cookie data will no longer be shared across the easy handles using this shared
  42. object.
  43. .IP CURL_LOCK_DATA_DNS
  44. Cached DNS hosts will be no longer be shared across the easy handles using
  45. this shared object.
  46. .IP CURL_LOCK_DATA_SSL_SESSION
  47. SSL session IDs will no longer be shared across the easy handles using this
  48. shared object.
  49. .IP CURL_LOCK_DATA_CONNECT
  50. The connection cache is no longer shared.
  51. .IP CURL_LOCK_DATA_PSL
  52. The Public Suffix List is no longer shared.
  53. .SH PROTOCOLS
  54. All
  55. .SH EXAMPLE
  56. .nf
  57. CURLSHcode sh;
  58. share = curl_share_init();
  59. sh = curl_share_setopt(share, CURLSHOPT_UNSHARE, CURL_LOCK_DATA_COOKIE);
  60. if(sh)
  61. printf("Error: %s\\n", curl_share_strerror(sh));
  62. .fi
  63. .SH AVAILABILITY
  64. Added in 7.10
  65. .SH RETURN VALUE
  66. CURLSHE_OK (zero) means that the option was set properly, non-zero means an
  67. error occurred. See \fIlibcurl-errors(3)\fP for the full list with
  68. descriptions.
  69. .SH "SEE ALSO"
  70. .BR CURLSHOPT_SHARE "(3), "
  71. .BR curl_share_setopt "(3), " curl_share_cleanup "(3), " curl_share_init "(3)"