From 252c8015444a80d1f82fc4eb415381179901af31 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 3 Mar 2020 08:49:24 +0000 Subject: [PATCH] recorded some TODO items in the comment --- mio/lib/dns-cli.c | 12 ++++++++++++ mio/lib/sck.c | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/mio/lib/dns-cli.c b/mio/lib/dns-cli.c index 9f29045..feb2f3d 100644 --- a/mio/lib/dns-cli.c +++ b/mio/lib/dns-cli.c @@ -989,3 +989,15 @@ mio_dns_msg_t* mio_svc_dnc_resolve (mio_svc_dnc_t* dnc, const mio_bch_t* qname, return reqmsg; } + + +/* TODO: upon startup, read /etc/hosts. setup inotify or find a way to detect file changes.. + * in resolve, add an option to use entries from /etc/hosts */ + +/* TODO: afxr client ... */ + +/* TODO: trace function to do its own recursive resolution?... +mio_dns_msg_t* mio_svc_dnc_trace (mio_svc_dnc_t* dnc, const mio_bch_t* qname, mio_dns_rrt_t qtype, int resolve_flags, mio_svc_dnc_on_resolve_t on_resolve, mio_oow_t xtnsize) +{ +} +*/ diff --git a/mio/lib/sck.c b/mio/lib/sck.c index c15a27d..9365873 100644 --- a/mio/lib/sck.c +++ b/mio/lib/sck.c @@ -749,7 +749,7 @@ static int do_ssl (mio_dev_sck_t* dev, int (*ssl_func)(SSL*)) ret = 1; /* accepted */ } - if (mio_dev_watch ((mio_dev_t*)dev, watcher_cmd, watcher_events) <= -1) + if (mio_dev_watch((mio_dev_t*)dev, watcher_cmd, watcher_events) <= -1) { mio_stop (mio, MIO_STOPREQ_WATCHER_ERROR); ret = -1;