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
Sebastian Schrader
Kea
Commits
ecb22c0c
Commit
ecb22c0c
authored
Apr 14, 2011
by
chenzhengzhang
Browse files
[trac749] update namespace names
parent
f5bcf535
Changes
159
Hide whitespace changes
Inline
Side-by-side
src/bin/auth/auth_srv.cc
View file @
ecb22c0c
...
...
@@ -31,7 +31,7 @@
#include <exceptions/exceptions.h>
#include <util/
io/
buffer.h>
#include <util/buffer.h>
#include <dns/edns.h>
#include <dns/exceptions.h>
...
...
@@ -64,7 +64,7 @@ using namespace isc;
using
namespace
isc
::
cc
;
using
namespace
isc
::
datasrc
;
using
namespace
isc
::
dns
;
using
namespace
isc
::
util
::
io
;
using
namespace
isc
::
util
;
using
namespace
isc
::
auth
;
using
namespace
isc
::
dns
::
rdata
;
using
namespace
isc
::
data
;
...
...
src/bin/auth/auth_srv.h
View file @
ecb22c0c
...
...
@@ -109,7 +109,7 @@ public:
/// \throw isc::Unexpected Protocol type of \a message is unexpected
void
processMessage
(
const
asiolink
::
IOMessage
&
io_message
,
isc
::
dns
::
MessagePtr
message
,
isc
::
util
::
io
::
OutputBufferPtr
buffer
,
isc
::
util
::
OutputBufferPtr
buffer
,
asiolink
::
DNSServer
*
server
);
/// \brief Set verbose flag
...
...
src/bin/auth/benchmarks/query_bench.cc
View file @
ecb22c0c
...
...
@@ -22,7 +22,7 @@
#include <bench/benchmark.h>
#include <bench/benchmark_util.h>
#include <util/
io/
buffer.h>
#include <util/buffer.h>
#include <dns/message.h>
#include <dns/name.h>
#include <dns/question.h>
...
...
@@ -41,7 +41,7 @@ using namespace isc;
using
namespace
isc
::
data
;
using
namespace
isc
::
auth
;
using
namespace
isc
::
dns
;
using
namespace
isc
::
util
::
io
;
using
namespace
isc
::
util
;
using
namespace
isc
::
xfr
;
using
namespace
isc
::
bench
;
using
namespace
asiolink
;
...
...
src/bin/auth/main.cc
View file @
ecb22c0c
...
...
@@ -25,7 +25,7 @@
#include <exceptions/exceptions.h>
#include <util/
io/
buffer.h>
#include <util/buffer.h>
#include <dns/message.h>
#include <dns/messagerenderer.h>
...
...
@@ -50,7 +50,7 @@ using namespace isc::data;
using
namespace
isc
::
cc
;
using
namespace
isc
::
config
;
using
namespace
isc
::
dns
;
using
namespace
isc
::
util
::
io
;
using
namespace
isc
::
util
;
using
namespace
isc
::
xfr
;
using
namespace
asiolink
;
...
...
src/bin/auth/tests/auth_srv_unittest.cc
View file @
ecb22c0c
...
...
@@ -41,7 +41,7 @@
using
namespace
std
;
using
namespace
isc
::
cc
;
using
namespace
isc
::
dns
;
using
namespace
isc
::
util
::
io
;
using
namespace
isc
::
util
;
using
namespace
isc
::
dns
::
rdata
;
using
namespace
isc
::
data
;
using
namespace
isc
::
xfr
;
...
...
src/bin/host/host.cc
View file @
ecb22c0c
...
...
@@ -24,7 +24,7 @@
#include <string>
#include <iostream>
#include <util/
io/
buffer.h>
#include <util/buffer.h>
#include <dns/name.h>
#include <dns/message.h>
...
...
@@ -38,7 +38,7 @@
using
namespace
std
;
using
namespace
isc
::
dns
;
using
namespace
isc
::
util
::
io
;
using
namespace
isc
::
util
;
namespace
{
char
*
dns_type
=
NULL
;
// not set, so A, AAAA, MX
...
...
src/bin/resolver/main.cc
View file @
ecb22c0c
...
...
@@ -29,7 +29,7 @@
#include <exceptions/exceptions.h>
#include <util/
io/
buffer.h>
#include <util/buffer.h>
#include <dns/rcode.h>
#include <dns/message.h>
#include <dns/messagerenderer.h>
...
...
src/bin/resolver/resolver.cc
View file @
ecb22c0c
...
...
@@ -29,7 +29,7 @@
#include <exceptions/exceptions.h>
#include <util/
io/
buffer.h>
#include <util/buffer.h>
#include <dns/opcode.h>
#include <dns/rcode.h>
...
...
@@ -51,7 +51,7 @@
using
namespace
std
;
using
namespace
isc
;
using
namespace
isc
::
util
::
io
;
using
namespace
isc
::
util
;
using
namespace
isc
::
dns
;
using
namespace
isc
::
data
;
using
namespace
isc
::
config
;
...
...
src/bin/resolver/resolver.h
View file @
ecb22c0c
...
...
@@ -77,7 +77,7 @@ public:
void
processMessage
(
const
asiolink
::
IOMessage
&
io_message
,
isc
::
dns
::
MessagePtr
query_message
,
isc
::
dns
::
MessagePtr
answer_message
,
isc
::
util
::
io
::
OutputBufferPtr
buffer
,
isc
::
util
::
OutputBufferPtr
buffer
,
asiolink
::
DNSServer
*
server
);
/// \brief Set and get the config session
...
...
src/lib/asiolink/dns_answer.h
View file @
ecb22c0c
...
...
@@ -66,7 +66,7 @@ public:
virtual
void
operator
()(
const
IOMessage
&
io_message
,
isc
::
dns
::
MessagePtr
query_message
,
isc
::
dns
::
MessagePtr
answer_message
,
isc
::
util
::
io
::
OutputBufferPtr
buffer
)
const
=
0
;
isc
::
util
::
OutputBufferPtr
buffer
)
const
=
0
;
};
}
// namespace asiolink
...
...
src/lib/asiolink/dns_lookup.h
View file @
ecb22c0c
...
...
@@ -17,7 +17,7 @@
#include <asiolink/io_message.h>
#include <asiolink/dns_server.h>
#include <util/
io/
buffer.h>
#include <util/buffer.h>
#include <dns/message.h>
namespace
asiolink
{
...
...
@@ -70,7 +70,7 @@ public:
virtual
void
operator
()(
const
IOMessage
&
io_message
,
isc
::
dns
::
MessagePtr
message
,
isc
::
dns
::
MessagePtr
answer_message
,
isc
::
util
::
io
::
OutputBufferPtr
buffer
,
isc
::
util
::
OutputBufferPtr
buffer
,
DNSServer
*
server
)
const
{
(
*
self_
)(
io_message
,
message
,
answer_message
,
buffer
,
server
);
...
...
src/lib/asiolink/io_asio_socket.h
View file @
ecb22c0c
...
...
@@ -26,7 +26,7 @@
#include <exceptions/exceptions.h>
#include <coroutine.h>
#include <util/
io/
buffer.h>
#include <util/buffer.h>
#include <asiolink/io_error.h>
#include <asiolink/io_socket.h>
...
...
@@ -270,7 +270,7 @@ public:
virtual
bool
processReceivedData
(
const
void
*
staging
,
size_t
length
,
size_t
&
cumulative
,
size_t
&
offset
,
size_t
&
expected
,
isc
::
util
::
io
::
OutputBufferPtr
&
outbuff
)
=
0
;
isc
::
util
::
OutputBufferPtr
&
outbuff
)
=
0
;
/// \brief Cancel I/O On AsioSocket
virtual
void
cancel
()
=
0
;
...
...
@@ -372,7 +372,7 @@ public:
virtual
bool
receiveComplete
(
const
void
*
staging
,
size_t
length
,
size_t
&
cumulative
,
size_t
&
offset
,
size_t
&
expected
,
isc
::
util
::
io
::
OutputBufferPtr
&
outbuff
)
isc
::
util
::
OutputBufferPtr
&
outbuff
)
{
return
(
true
);
}
...
...
src/lib/asiolink/io_fetch.cc
View file @
ecb22c0c
...
...
@@ -28,7 +28,7 @@
#include <dns/rcode.h>
#include <log/logger.h>
#include <util/
io/
buffer.h>
#include <util/buffer.h>
#include <util/random/qid_gen.h>
#include <asio.hpp>
...
...
@@ -49,7 +49,7 @@
using
namespace
asio
;
using
namespace
isc
::
dns
;
using
namespace
isc
::
util
::
io
;
using
namespace
isc
::
util
;
using
namespace
isc
::
util
::
random
;
using
namespace
isc
::
log
;
using
namespace
std
;
...
...
src/lib/asiolink/io_fetch.h
View file @
ecb22c0c
...
...
@@ -25,7 +25,7 @@
#include <asio/error_code.hpp>
#include <util/
io/
buffer.h>
#include <util/buffer.h>
#include <dns/question.h>
namespace
asiolink
{
...
...
@@ -134,7 +134,7 @@ public:
/// -1 indicates no timeout.
IOFetch
(
Protocol
protocol
,
IOService
&
service
,
const
isc
::
dns
::
Question
&
question
,
const
IOAddress
&
address
,
uint16_t
port
,
isc
::
util
::
io
::
OutputBufferPtr
&
buff
,
Callback
*
cb
,
uint16_t
port
,
isc
::
util
::
OutputBufferPtr
&
buff
,
Callback
*
cb
,
int
wait
=
-
1
);
/// \brief Return Current Protocol
...
...
src/lib/asiolink/tcp_server.cc
View file @
ecb22c0c
...
...
@@ -23,7 +23,7 @@
#include <log/dummylog.h>
#include <util/
io/
buffer.h>
#include <util/buffer.h>
#include <asio.hpp>
#include <asiolink/dummy_io_cb.h>
...
...
@@ -38,7 +38,7 @@ using asio::ip::tcp;
using
namespace
std
;
using
namespace
isc
::
dns
;
using
namespace
isc
::
util
::
io
;
using
namespace
isc
::
util
;
namespace
asiolink
{
...
...
src/lib/asiolink/tcp_server.h
View file @
ecb22c0c
...
...
@@ -91,7 +91,7 @@ private:
boost
::
shared_ptr
<
asio
::
ip
::
tcp
::
socket
>
socket_
;
// The buffer into which the response is written
boost
::
shared_ptr
<
isc
::
util
::
io
::
OutputBuffer
>
respbuf_
;
boost
::
shared_ptr
<
isc
::
util
::
OutputBuffer
>
respbuf_
;
// \c IOMessage and \c Message objects to be passed to the
// DNS lookup and answer providers
...
...
src/lib/asiolink/tcp_socket.h
View file @
ecb22c0c
...
...
@@ -33,8 +33,8 @@
#include <config.h>
#include <util/
io/
buffer.h>
#include <util/io
/io
_utilities.h>
#include <util/buffer.h>
#include <util/io_utilities.h>
#include <asiolink/io_asio_socket.h>
#include <asiolink/io_endpoint.h>
...
...
@@ -155,7 +155,7 @@ public:
virtual
bool
processReceivedData
(
const
void
*
staging
,
size_t
length
,
size_t
&
cumulative
,
size_t
&
offset
,
size_t
&
expected
,
isc
::
util
::
io
::
OutputBufferPtr
&
outbuff
);
isc
::
util
::
OutputBufferPtr
&
outbuff
);
/// \brief Cancel I/O On Socket
virtual
void
cancel
();
...
...
@@ -185,7 +185,7 @@ private:
// The option of sending the data in two operations, the count followed by
// the data was discounted as that would lead to two callbacks which would
// cause problems with the stackless coroutine code.
isc
::
util
::
io
::
OutputBufferPtr
send_buffer_
;
///< Send buffer
isc
::
util
::
OutputBufferPtr
send_buffer_
;
///< Send buffer
};
// Constructor - caller manages socket
...
...
@@ -268,7 +268,7 @@ TCPSocket<C>::asyncSend(const void* data, size_t length,
uint16_t
count
=
boost
::
numeric_cast
<
uint16_t
>
(
length
);
// Copy data into a buffer preceded by the count field.
send_buffer_
.
reset
(
new
isc
::
util
::
io
::
OutputBuffer
(
length
+
2
));
send_buffer_
.
reset
(
new
isc
::
util
::
OutputBuffer
(
length
+
2
));
send_buffer_
->
writeUint16
(
count
);
send_buffer_
->
writeData
(
data
,
length
);
...
...
@@ -333,7 +333,7 @@ template <typename C> bool
TCPSocket
<
C
>::
processReceivedData
(
const
void
*
staging
,
size_t
length
,
size_t
&
cumulative
,
size_t
&
offset
,
size_t
&
expected
,
isc
::
util
::
io
::
OutputBufferPtr
&
outbuff
)
isc
::
util
::
OutputBufferPtr
&
outbuff
)
{
// Point to the data in the staging buffer and note how much there is.
const
uint8_t
*
data
=
static_cast
<
const
uint8_t
*>
(
staging
);
...
...
@@ -358,7 +358,7 @@ TCPSocket<C>::processReceivedData(const void* staging, size_t length,
}
// Have enough data to interpret the packet count, so do so now.
expected
=
isc
::
util
::
io
::
readUint16
(
data
);
expected
=
isc
::
util
::
readUint16
(
data
);
// We have two bytes less of data to process. Point to the start of the
// data and adjust the packet size. Note that at this point,
...
...
src/lib/asiolink/tests/dns_server_unittest.cc
View file @
ecb22c0c
...
...
@@ -110,7 +110,7 @@ class DummyLookup : public DNSLookup, public ServerStopper {
void
operator
()(
const
IOMessage
&
io_message
,
isc
::
dns
::
MessagePtr
message
,
isc
::
dns
::
MessagePtr
answer_message
,
isc
::
util
::
io
::
OutputBufferPtr
buffer
,
isc
::
util
::
OutputBufferPtr
buffer
,
DNSServer
*
server
)
const
{
stopServer
();
server
->
resume
(
true
);
...
...
@@ -124,7 +124,7 @@ class SimpleAnswer : public DNSAnswer, public ServerStopper {
void
operator
()(
const
IOMessage
&
message
,
isc
::
dns
::
MessagePtr
query_message
,
isc
::
dns
::
MessagePtr
answer_message
,
isc
::
util
::
io
::
OutputBufferPtr
buffer
)
const
isc
::
util
::
OutputBufferPtr
buffer
)
const
{
//copy what we get from user
buffer
->
writeData
(
message
.
getData
(),
message
.
getDataSize
());
...
...
src/lib/asiolink/tests/io_fetch_unittest.cc
View file @
ecb22c0c
...
...
@@ -26,8 +26,8 @@
#include <asio.hpp>
#include <util/
io/
buffer.h>
#include <util/io
/io
_utilities.h>
#include <util/buffer.h>
#include <util/io_utilities.h>
#include <dns/question.h>
#include <dns/message.h>
...
...
@@ -43,7 +43,7 @@
using
namespace
asio
;
using
namespace
isc
::
dns
;
using
namespace
isc
::
util
::
io
;
using
namespace
isc
::
util
;
using
namespace
asio
::
ip
;
using
namespace
std
;
...
...
src/lib/asiolink/tests/tcp_socket_unittest.cc
View file @
ecb22c0c
...
...
@@ -35,8 +35,8 @@
#include <boost/bind.hpp>
#include <boost/shared_ptr.hpp>
#include <util/
io/
buffer.h>
#include <util/io
/io
_utilities.h>
#include <util/buffer.h>
#include <util/io_utilities.h>
#include <asio.hpp>
...
...
@@ -47,7 +47,7 @@
using
namespace
asio
;
using
namespace
asio
::
ip
;
using
namespace
asiolink
;
using
namespace
isc
::
util
::
io
;
using
namespace
isc
::
util
;
using
namespace
std
;
namespace
{
...
...
Prev
1
2
3
4
5
…
8
Next
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