Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/copperlight/libcurl-multi-example
https://github.com/copperlight/libcurl-multi-example
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/copperlight/libcurl-multi-example
- Owner: copperlight
- License: apache-2.0
- Created: 2023-10-28T15:13:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-11T22:48:05.000Z (11 months ago)
- Last Synced: 2023-12-11T23:38:49.663Z (11 months ago)
- Language: C
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Introduction
A small Conan/CMake scaffold project to build a variety of the [curl API Examples] C programs, and a couple of
variations thereof in C++, in order to explore how the [curl multi interface] works.[curl API Examples]: https://curl.se/libcurl/c/example.html
[curl multi interface]: https://curl.se/libcurl/c/libcurl-multi.html## Local Development
```shell
# install necessary tools
brew install cmake
``````shell
# build the project
./setup-venv.sh
source venv/bin/activate
./build.sh # [clean]
``````shell
# run the examples
./cmake-build/bin/10-at-a-time
./cmake-build/bin/crawler
```## Debugging
Diagnose segfaults on MacOS:
```shell
$ lldb --file /path/to/program
...
(lldb) r
Process 89510 launched
...
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x726f00)
* frame #0: 0x00007fff73856e52 libsystem_platform.dylib`_platform_strlen + 18
...
```