CURLSHOPT_UNSHARE.3 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. .\" **************************************************************************
  2. .\" * _ _ ____ _
  3. .\" * Project ___| | | | _ \| |
  4. .\" * / __| | | | |_) | |
  5. .\" * | (__| |_| | _ <| |___
  6. .\" * \___|\___/|_| \_\_____|
  7. .\" *
  8. .\" * Copyright (C) 1998 - 2021, 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. .\" **************************************************************************
  22. .TH CURLSHOPT_UNSHARE 3 "8 Aug 2003" "libcurl 7.10.7" "libcurl Manual"
  23. .SH NAME
  24. CURLSHOPT_UNSHARE - remove data to share
  25. .SH SYNOPSIS
  26. .nf
  27. #include <curl/curl.h>
  28. CURLSHcode curl_share_setopt(CURLSH *share, CURLSHOPT_UNSHARE, long type);
  29. .fi
  30. .SH DESCRIPTION
  31. The \fItype\fP parameter specifies what specific data that should no longer be
  32. shared and kept in the share object that was created with
  33. \fIcurl_share_init(3)\fP. In other words, stop sharing that data in this
  34. shared object. The given \fItype\fP must be be one of the values described
  35. below. You can set \fICURLSHOPT_UNSHARE(3)\fP multiple times with different
  36. data arguments to remove multiple types from the shared object. Add data to
  37. share again with \fICURLSHOPT_SHARE(3)\fP.
  38. .IP CURL_LOCK_DATA_COOKIE
  39. Cookie data will no longer be shared across the easy handles using this shared
  40. object.
  41. .IP CURL_LOCK_DATA_DNS
  42. Cached DNS hosts will be no longer be shared across the easy handles using
  43. this shared object.
  44. .IP CURL_LOCK_DATA_SSL_SESSION
  45. SSL session IDs will no longer be shared across the easy handles using this
  46. shared object.
  47. .IP CURL_LOCK_DATA_CONNECT
  48. The connection cache is no longer shared.
  49. .IP CURL_LOCK_DATA_PSL
  50. The Public Suffix List is no longer shared.
  51. .SH PROTOCOLS
  52. All
  53. .SH EXAMPLE
  54. .nf
  55. CURLSHcode sh;
  56. share = curl_share_init();
  57. sh = curl_share_setopt(share, CURLSHOPT_UNSHARE, CURL_LOCK_DATA_COOKIE);
  58. if(sh)
  59. printf("Error: %s\\n", curl_share_strerror(sh));
  60. .fi
  61. .SH AVAILABILITY
  62. Added in 7.10
  63. .SH RETURN VALUE
  64. CURLSHE_OK (zero) means that the option was set properly, non-zero means an
  65. error occurred. See \fIlibcurl-errors(3)\fP for the full list with
  66. descriptions.
  67. .SH "SEE ALSO"
  68. .BR CURLSHOPT_SHARE "(3), "
  69. .BR curl_share_setopt "(3), " curl_share_cleanup "(3), " curl_share_init "(3)"