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

https://github.com/motionspell/lldash-relay

Low latency HTTP relay acting like a WebRTC SFU
https://github.com/motionspell/lldash-relay

dash http sfu

Last synced: 13 days ago
JSON representation

Low latency HTTP relay acting like a WebRTC SFU

Awesome Lists containing this project

README

        

# Evanescent : a low-latency HTTP server

# Dependencies

## Build dependencies

```
$ sudo apt install libssl-dev
```

## Code formatter (optional)

Install [uncrustify](https://github.com/uncrustify/uncrustify)

```
$ git clone https://github.com/uncrustify/uncrustify.git
$ cd uncrustify
$ git checkout uncrustify-0.64
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ make -j $(nproc)
$ sudo make install
```

# Running

Usage examples:

```sh
$ evanescent --port 10333
$ evanescent --tls --port 10777
$ evanescent --long-poll 5000 # accepts client connections on non-existing resources, value in ms.

```

# Building

## Native build

```
$ make
```

## Cross-compiling

Simply override CXX and PKG_CONFIG_LIBDIR to use your target toolchain:

```
$ export PKG_CONFIG_LIBDIR=/my_w32_sysroot
$ export CXX=x86_64-w64-mingw32-g++
$ make
```

Beware: if you don't override PKG_CONFIG_LIBDIR, the build will use your system
headers, which will lead to strange compilation errors.

# Testing

```
./check
```

# Computing coverage

```
./scripts/cov.sh
```

# Usefull links

- HTTP 1.1: https://tools.ietf.org/html/rfc7231
- OpenSSL manual: https://www.openssl.org/docs/manmaster/man3/