From: Sebastian Harl Date: Fri, 25 Oct 2013 16:59:40 +0000 (+0200) Subject: socket frontend: Renamed accept_connection → connection_accept. X-Git-Tag: sysdb-0.1.0~336^2~34 X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=commitdiff_plain;h=4aa1d4bdc710dd5535ba00aa84141d1db5c09ab0 socket frontend: Renamed accept_connection → connection_accept. --- diff --git a/src/frontend/sock.c b/src/frontend/sock.c index a389a14..667b616 100644 --- a/src/frontend/sock.c +++ b/src/frontend/sock.c @@ -337,12 +337,12 @@ connection_handler(void *data) } /* connection_handler */ static int -accept_connection(sdb_fe_socket_t *sock, listener_t *listener) +connection_accept(sdb_fe_socket_t *sock, listener_t *listener) { sdb_object_t *obj; - /* the X's will be replaced with the accepted file descriptor - * when initializing the object */ + /* the placeholder will be replaced with the accepted file + * descriptor when initializing the object */ obj = sdb_object_create(CONN_FD_PREFIX CONN_FD_PLACEHOLDER, connection_type, listener->sock_fd); if (! obj) @@ -359,7 +359,7 @@ accept_connection(sdb_fe_socket_t *sock, listener_t *listener) /* hand ownership over to the list */ sdb_object_deref(obj); return 0; -} /* accept_connection */ +} /* connection_accept */ /* * public API @@ -509,7 +509,7 @@ sdb_fe_sock_listen_and_serve(sdb_fe_socket_t *sock, sdb_fe_loop_t *loop) for (i = 0; i < sock->listeners_num; ++i) { listener_t *listener = sock->listeners + i; if (FD_ISSET(listener->sock_fd, &ready)) - if (accept_connection(sock, listener)) + if (connection_accept(sock, listener)) continue; }