Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
f773aacf
Commit
f773aacf
authored
Aug 06, 2003
by
Per Cederqvist
Browse files
(isc_initialize): Initialize an oop adns adapter.
(isc_shutdown): Delete the oop adns adapter.
parent
043e034c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/libraries/libisc-new/src/isc_master.c
View file @
f773aacf
...
...
@@ -43,6 +43,8 @@
#endif
#include
"oop.h"
#include
"adns.h"
#include
"oop-adns.h"
#include
"s-string.h"
#include
"timeval-util.h"
...
...
@@ -60,10 +62,21 @@ isc_initialize(oop_source *event_source,
isc_write_queue_change_cb
*
write_change_cb
)
{
struct
isc_mcb
*
mcb
;
oop_adapter_adns
*
adns
;
adns
=
oop_adns_new
(
event_source
,
0
|
adns_if_logpid
|
adns_if_checkc_entex
|
adns_if_nosigpipe
,
stderr
);
if
(
adns
==
NULL
)
return
NULL
;
ISC_XNEW
(
mcb
);
ISC_XNEW
(
mcb
->
scfg
);
mcb
->
sessions
=
NULL
;
mcb
->
adns
=
adns
;
/* Setup default values */
mcb
->
scfg
->
max
.
msgsize
=
ISC_DEFAULT_MAX_MSG_SIZE
;
...
...
@@ -126,6 +139,7 @@ isc_shutdown(struct isc_mcb * mcb)
while
(
mcb
->
sessions
)
isc_destroy
(
mcb
,
&
mcb
->
sessions
->
scb
->
pub
);
oop_adns_delete
(
mcb
->
adns
);
isc_free
(
mcb
->
scfg
);
isc_free
(
mcb
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment