mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
view is created and passed to client managers. Client state is begun -- needs work.
This commit is contained in:
@@ -47,14 +47,13 @@ struct client_s {
|
|||||||
|
|
||||||
isc_boolean_t isidle;
|
isc_boolean_t isidle;
|
||||||
|
|
||||||
dns_view_t *view;
|
|
||||||
|
|
||||||
ISC_LINK(client_t) link;
|
ISC_LINK(client_t) link;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct clientmgr_s {
|
struct clientmgr_s {
|
||||||
isc_task_t *task; /* owning task */
|
isc_task_t *task; /* owning task */
|
||||||
isc_socket_t *sock; /* socket to use */
|
isc_socket_t *sock; /* socket to use */
|
||||||
|
dns_view_t *view;
|
||||||
unsigned int flags;
|
unsigned int flags;
|
||||||
isc_event_t sdev; /* shutdown event */
|
isc_event_t sdev; /* shutdown event */
|
||||||
ISC_LIST(client_t) idle; /* idle client slots */
|
ISC_LIST(client_t) idle; /* idle client slots */
|
||||||
|
@@ -264,6 +264,7 @@ main(int argc, char **argv)
|
|||||||
for (i = 0 ; i < NTASKS ; i++) {
|
for (i = 0 ; i < NTASKS ; i++) {
|
||||||
cmgr[i].task = NULL;
|
cmgr[i].task = NULL;
|
||||||
cmgr[i].sock = sock;
|
cmgr[i].sock = sock;
|
||||||
|
cmgr[i].view = view;
|
||||||
cmgr[i].flags = 0;
|
cmgr[i].flags = 0;
|
||||||
ISC_EVENT_INIT(&cmgr[i].sdev, sizeof(isc_event_t),
|
ISC_EVENT_INIT(&cmgr[i].sdev, sizeof(isc_event_t),
|
||||||
ISC_EVENTATTR_NOPURGE,
|
ISC_EVENTATTR_NOPURGE,
|
||||||
|
Reference in New Issue
Block a user