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
Sebastian Schrader
Kea
Commits
cf1828a2
Commit
cf1828a2
authored
Jul 03, 2013
by
Marcin Siodelski
Browse files
[2977] Implemented DNS Update response parsing.
parent
4ab333e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/d2/dns_client.cc
View file @
cf1828a2
...
...
@@ -43,8 +43,13 @@ DNSClient::DNSClient(D2UpdateMessagePtr& response_placeholder,
void
DNSClient
::
operator
()(
IOFetch
::
Result
result
)
{
// @todo Do something useful here. One of the useful things will be to parse
// incoming message if the result is SUCCESS.
// @todo More sanity checks here. Also, there is a question, what happens if
// the exception is thrown here.
if
(
result
==
IOFetch
::
SUCCESS
)
{
InputBuffer
response_buf
(
in_buf_
->
getData
(),
in_buf_
->
getLength
());
response_
->
fromWire
(
response_buf
);
}
// Once we are done with internal business, let's call a callback supplied
// by a caller.
...
...
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