diff options
author | John Kohl <jtkohl@mit.edu> | 1987-07-02 15:06:27 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1987-07-02 15:06:27 +0000 |
commit | db7ca3bf3b0d90b77cd620a750f70b4b47b6986d (patch) | |
tree | 1ffb83b050e125472085f6b0cd188230552c7c93 /server/dispatch.c | |
parent | 187ad11c3c0553d8112df7dd4a0a401aea9002c2 (diff) |
clean up dispatch, add comments describing external funcs
Diffstat (limited to 'server/dispatch.c')
-rw-r--r-- | server/dispatch.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/server/dispatch.c b/server/dispatch.c index 46f3848..c7bc723 100644 --- a/server/dispatch.c +++ b/server/dispatch.c @@ -34,6 +34,13 @@ static char rcsid_dispatch_c[] = "$Header$"; * struct sockaddr_in *who; * ZSentType sent; * + * void nack_release(client) + * ZClient_t *client; + * + * void sendit(notice, auth, who) + * ZNotice_t *notice; + * int auth; + * struct sockaddr_in *who; */ static void xmit(), rexmit(), nack_cancel(); @@ -103,15 +110,7 @@ struct sockaddr_in *who; ulocate_dispatch(notice, auth, who); return; } else if (class_is_admin(notice)) { - /* this had better be a HELLO message--start of acquisition - protocol */ - syslog(LOG_INFO, "disp: new server?"); - if (server_register(notice, who) != ZERR_NONE) - syslog(LOG_INFO, "new server failed"); - else - syslog(LOG_INFO, "new server %s, %d", - inet_ntoa(who->sin_addr), - ntohs(who->sin_port)); + server_adispatch(notice, auth, who); return; } |