Fix last commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#ifndef INCLUDED_SERVER_H
|
||||
#define INCLUDED_SERVER_H
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stddef.h>
|
||||
|
||||
constexpr int SERVER_BACKLOG = 32;
|
||||
|
||||
typedef struct _Server Server;
|
||||
|
||||
Server *make_server(const char *text_addr, uint32_t port);
|
||||
|
||||
void destroy_server(Server *server);
|
||||
|
||||
// same return value as accept(2)
|
||||
int server_accept(Server *server);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user