From 7a89685f88a61fcdc4bd2ef5ee8aebc7de8eead6 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Tue, 12 Mar 2002 18:29:25 +0000 Subject: [PATCH] updates. --- TODO | 2 ++ lib/silcutil/silcnet.c | 10 ++++++---- lib/silcutil/silcsockconn.c | 5 +++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/TODO b/TODO index 322e71f0..96edf53d 100644 --- a/TODO +++ b/TODO @@ -48,6 +48,8 @@ TODO/bugs In SILC Server o Add rehashing support. + o IPv6 support problems. + o If server send CUMODE_CHANGE notify (like setting founder) to router and router does not have founder on channel (founder is left or there's no founder on channel at all), the router will accept the server's diff --git a/lib/silcutil/silcnet.c b/lib/silcutil/silcnet.c index da063595..c685e637 100644 --- a/lib/silcutil/silcnet.c +++ b/lib/silcutil/silcnet.c @@ -115,14 +115,15 @@ SILC_TASK_CALLBACK(silc_net_resolve_completion) static void *silc_net_gethostbyname_thread(void *context) { SilcNetResolveContext r = (SilcNetResolveContext)context; + SilcSchedule schedule = r->schedule; char tmp[64]; if (silc_net_gethostbyname(r->input, r->prefer_ipv6, tmp, sizeof(tmp))) r->result = strdup(tmp); - silc_schedule_task_add(r->schedule, 0, silc_net_resolve_completion, r, 0, 1, + silc_schedule_task_add(schedule, 0, silc_net_resolve_completion, r, 0, 1, SILC_TASK_TIMEOUT, SILC_TASK_PRI_NORMAL); - silc_schedule_wakeup(r->schedule); + silc_schedule_wakeup(schedule); return NULL; } @@ -131,14 +132,15 @@ static void *silc_net_gethostbyname_thread(void *context) static void *silc_net_gethostbyaddr_thread(void *context) { SilcNetResolveContext r = (SilcNetResolveContext)context; + SilcSchedule schedule = r->schedule; char tmp[256]; if (silc_net_gethostbyaddr(r->input, tmp, sizeof(tmp))) r->result = strdup(tmp); - silc_schedule_task_add(r->schedule, 0, silc_net_resolve_completion, r, 0, 1, + silc_schedule_task_add(schedule, 0, silc_net_resolve_completion, r, 0, 1, SILC_TASK_TIMEOUT, SILC_TASK_PRI_NORMAL); - silc_schedule_wakeup(r->schedule); + silc_schedule_wakeup(schedule); return NULL; } diff --git a/lib/silcutil/silcsockconn.c b/lib/silcutil/silcsockconn.c index ad07a2b6..c32aaf8c 100644 --- a/lib/silcutil/silcsockconn.c +++ b/lib/silcutil/silcsockconn.c @@ -184,6 +184,7 @@ static void *silc_socket_host_lookup_start(void *context) { SilcSocketHostLookup lookup = (SilcSocketHostLookup)context; SilcSocketConnection sock = lookup->sock; + SilcSchedule schedule = lookup->schedule; if (lookup->port) sock->port = silc_net_get_remote_port(sock->sock); @@ -192,10 +193,10 @@ static void *silc_socket_host_lookup_start(void *context) if (!sock->hostname && sock->ip) sock->hostname = strdup(sock->ip); - silc_schedule_task_add(lookup->schedule, sock->sock, + silc_schedule_task_add(schedule, sock->sock, silc_socket_host_lookup_finish, lookup, 0, 1, SILC_TASK_TIMEOUT, SILC_TASK_PRI_NORMAL); - silc_schedule_wakeup(lookup->schedule); + silc_schedule_wakeup(schedule); return NULL; } -- 2.24.0