core-legacy/helpers.h
Tobias Reisinger a38a6e63b3 add: filters
add: schedule api calls
2019-07-20 14:51:45 +02:00

23 lines
479 B
C++

#ifndef EMGAUWA_CORE_HELPERS_H
#define EMGAUWA_CORE_HELPERS_H
#include <json/value.h>
#include <models/period.h>
#include <models/period_list.h>
namespace helpers
{
int
bind_tcp_server(const char *addr, const char *port, int max_client_backlog);
int
get_server_port(int fd);
int
send_udp_broadcast(const char *addr, uint16_t port, const char* message);
period_list*
parse_periods(Json::Value periods_json);
}
#endif //EMGAUWA_CORE_HELPERS_H