Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/copperlight/libcurl-multi-example


https://github.com/copperlight/libcurl-multi-example

Last synced: about 5 hours ago
JSON representation

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
...
```