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
Pavel Zhukov
Kea
Commits
b7c5f070
Commit
b7c5f070
authored
Jan 31, 2011
by
Jelte Jansen
Browse files
[trac494] removed some dead code
parent
cf6de64a
Changes
1
Show whitespace changes
Inline
Side-by-side
src/bin/resolver/resolver.cc
View file @
b7c5f070
...
...
@@ -344,31 +344,11 @@ Resolver::getConfigSession() const {
return
(
impl_
->
config_session_
);
}
/* tmp for in-dev testing */
class
MyCallback
:
public
resolve
::
ResolverInterface
::
Callback
{
public:
virtual
void
success
(
MessagePtr
response
)
{
std
::
cout
<<
"[XX] CALLBACK FOR LOOKUP!"
<<
std
::
endl
;
std
::
cout
<<
"[XX] GOT: "
<<
*
response
<<
std
::
endl
;
std
::
cout
<<
"[XX] END"
<<
std
::
endl
;
};
virtual
void
failure
()
{
std
::
cout
<<
"[XX] internal lookup failed"
<<
std
::
endl
;
}
~
MyCallback
()
{
std
::
cout
<<
"[XX] MyCallback deleted!"
<<
std
::
endl
;
}
};
void
Resolver
::
resolve
(
const
isc
::
dns
::
QuestionPtr
&
question
,
const
isc
::
resolve
::
ResolverInterface
::
CallbackPtr
&
callback
)
{
std
::
cout
<<
"[XX] asked to resolve: "
<<
*
question
<<
std
::
endl
;
impl_
->
resolve
(
question
,
callback
);
std
::
cout
<<
"[XX] done?"
<<
std
::
endl
;
}
...
...
@@ -379,17 +359,6 @@ Resolver::processMessage(const IOMessage& io_message,
OutputBufferPtr
buffer
,
DNSServer
*
server
)
{
/*
std::cout << "[XX] remove this :p" << std::endl;
QuestionPtr q(new Question(Name("www.tjeb.nl"), RRClass::IN(), RRType::A()));
boost::shared_ptr<MyCallback> callback(new MyCallback());
std::cout << "[XX] CREATED CALLBACK AT " << callback << std::endl;
resolve(q, callback);
//resolve(q, callback);
std::cout << "[XX] up to here" << std::endl;
*/
dlog
(
"Got a DNS message"
);
InputBuffer
request_buffer
(
io_message
.
getData
(),
io_message
.
getDataSize
());
// First, check the header part. If we fail even for the base header,
...
...
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