tcp-chat/include/tcp-chat/server.h

11 lines
287 B
C

#pragma once
#include "tlibc/errors.h"
#include "tlibc/string/str.h"
#include "tcp-chat/log.h"
typedef struct Server Server;
Result(Server*) Server_create(str config_str, void* logger, LogFunction_t log_func);
void Server_free(Server* server);
Result(void) Server_run(Server* server);