26 void addAddress(std::string address, std::function<
void(std::string,
void*,
int)> on_receive =
nullptr, std::function<
void(std::string)> on_connect =
nullptr, std::function<
void(std::string)> on_disconnect =
nullptr,
bool binary =
false);
28 int sendNonRt(
const char* address,
const char* str);
29 int sendNonRt(
const char* address,
const void* buf,
unsigned int size);
30 int sendRt(
const char* address,
const char* str);
31 int sendRt(
const char* address,
const void* buf,
unsigned int size);
38 std::shared_ptr<seasocks::Server> server;
40 struct AddressBookItem {
41 std::unique_ptr<AuxTaskNonRT> thread;
42 std::shared_ptr<WSServerDataHandler> handler;
44 std::map<std::string, AddressBookItem> address_book;
45 std::unique_ptr<AuxTaskNonRT> server_task;
47 void client_task_func(std::shared_ptr<WSServerDataHandler> handler,
const void* buf,
unsigned int size);
Definition: WSServer.cpp:17
void cleanup(BelaContext *context, void *userData)
User-defined cleanup function which runs when the program finishes.
Definition: render.cpp:96
Definition: WSServer.h:17
bool setup(BelaContext *context, void *userData)
User-defined initialisation function which runs before audio rendering begins.
Definition: render.cpp:51
Definition: AuxTaskNonRT.h:20