-// Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2009,2015 Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
acceptor_(io_service_, ep_),
socket_(io_service_)
{
- acceptor_.async_accept(socket_,
- boost::bind(&TestDomainSocket::acceptHandler,
- this, _1));
+ acceptor_.async_accept(socket_, boost::bind(&TestDomainSocket::acceptHandler,
+ _1));
}
~TestDomainSocket() {
unlink(BUNDY_TEST_SOCKET_FILE);
}
- void acceptHandler(const asio::error_code&) const {
+ static void acceptHandler(const asio::error_code&) {
}
void sendmsg(isc::data::ElementPtr& env, isc::data::ElementPtr& msg) {
-// Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2009,2015 Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
}
private:
- uint16_t nextPosition(const OutputBuffer& buffer,
- uint16_t pos, uint16_t& llen) const
+ static uint16_t nextPosition(const OutputBuffer& buffer,
+ uint16_t pos, uint16_t& llen)
{
if (llen == 0) {
size_t i = 0;
-// Copyright (C) 2011 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011,2015 Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// does not exist, use /tmp.
//
// \return Temporary file name
- std::string createTempFilename() {
+ static std::string createTempFilename() {
string filename = TEMP_DIR + "/kea_logger_manager_test_XXXXXX";
// Copy into writeable storage for the call to mkstemp