mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 20:47:08 +03:00
- means 3 sockets are used (data + 2 for control) - but LRU is activated (uses the 2 extra sockets to wake from select) - backlog is just 1 (listen) - only 3 sockets can be consumed before LRU activates - for now, connections are kept-alive
20 lines
537 B
C
20 lines
537 B
C
/*
|
|
* (c) Philippe 2020, philippe_44@outlook.com
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "platform.h"
|
|
#include "raop_sink.h"
|
|
|
|
struct raop_ctx_s* raop_create(struct in_addr host, char *name, unsigned char mac[6], int latency,
|
|
raop_cmd_cb_t cmd_cb, raop_data_cb_t data_cb);
|
|
void raop_delete(struct raop_ctx_s *ctx);
|
|
void raop_abort(struct raop_ctx_s *ctx);
|
|
bool raop_cmd(struct raop_ctx_s *ctx, raop_event_t event, void *param);
|
|
|