Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
2c34181a
Commit
2c34181a
authored
Aug 27, 2012
by
JINMEI Tatuya
Browse files
[2098] some additional changes to making writeName virtual in the base class.
parent
b350749a
Changes
2
Show whitespace changes
Inline
Side-by-side
src/lib/dns/benchmarks/oldmessagerenderer.h
View file @
2c34181a
...
...
@@ -42,6 +42,7 @@ public:
virtual
void
setCompressMode
(
CompressMode
mode
);
virtual
void
clear
();
virtual
void
writeName
(
const
Name
&
name
,
bool
compress
=
true
);
virtual
void
writeName
(
const
LabelSequence
&
labels
,
bool
compress
);
private:
struct
MessageRendererImpl
;
MessageRendererImpl
*
impl_
;
...
...
src/lib/dns/messagerenderer.h
View file @
2c34181a
...
...
@@ -332,8 +332,20 @@ public:
/// for compressing subsequent names.
///
/// \param name A \c Name object to be written.
/// \param compress A boolean indicating whether to enable name compression.
/// \param compress A boolean indicating whether to enable name
/// compression.
virtual
void
writeName
(
const
Name
&
name
,
bool
compress
=
true
)
=
0
;
/// \brief Write a \c LabelSequence object into the internal buffer
/// in wire format, with or without name compression.
///
/// This is the same as the other version, which takes \c Name instead
/// of \c LabelSequence, except for the parameter type. The passed
/// \c LabelSequence must be absolute.
///
/// \param ls A \c LabelSequence object to be written.
/// \param compress A boolean indicating whether to enable name
/// compression.
virtual
void
writeName
(
const
LabelSequence
&
ls
,
bool
compress
=
true
)
=
0
;
//@}
};
...
...
@@ -377,21 +389,6 @@ public:
virtual
void
clear
();
virtual
void
writeName
(
const
Name
&
name
,
bool
compress
=
true
);
/// \brief Write a \c LabelSequence object into the internal buffer
/// in wire format, with or without name compression.
///
/// If the optional parameter \c compress is \c true, this method tries to
/// compress the \c ls if possible, searching the entire message that has
/// been rendered. Otherwise name compression is omitted. Its default
/// value is \c true.
///
/// Note: even if \c compress is \c true, the position of the \c ls (and
/// possibly its ancestor names) in the message is recorded and may be used
/// for compressing subsequent names.
///
/// \param ls A \c LabelSequence object to be written.
/// \param compress A boolean indicating whether to enable name compression.
virtual
void
writeName
(
const
LabelSequence
&
ls
,
bool
compress
=
true
);
private:
...
...
Write
Preview
Markdown
is supported
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