Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
 All Classes Files Functions Variables Typedefs Macros Groups
Public Member Functions | Friends | List of all members
WSServer Class Reference

Public Member Functions

 WSServer (int _port)
 
void setup (int port)
 
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)
 
int send (const char *address, const char *str)
 
int send (const char *address, void *buf, int num_bytes)
 

Friends

struct WSServerDataHandler
 

The documentation for this class was generated from the following file: