libuhttpd: New API

int uh_server_open(const char *host, int port);
void uh_server_init(struct uh_server *srv, int sock);

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
Jianhui Zhao committed 2018-07-19 13:35:30 +08:00
1 parent 3920100e64
commit dcb397a62c
3 files changed
+31 -13

No files matched your search

+3 -1
View File
@@ -102,8 +102,10 @@ int main(int argc, char **argv)
done:
uloop_done();
if (srv)
if (srv) {
srv->free(srv);
free(srv);
}
return 0;
}