From a576b019db0216cdf36aebbee97923475cc68cf8 Mon Sep 17 00:00:00 2001 From: caozhiyi <272653256@qq.com> Date: Wed, 7 Apr 2021 18:45:00 +0800 Subject: [PATCH] add agreement statement. --- LICENSE | 2 +- common/alloter/alloter_interface.h | 5 +++++ common/alloter/normal_alloter.cpp | 5 +++++ common/alloter/normal_alloter.h | 5 +++++ common/alloter/pool_alloter.cpp | 5 +++++ common/alloter/pool_alloter.h | 5 +++++ common/alloter/pool_block.cpp | 5 +++++ common/alloter/pool_block.h | 5 +++++ common/buffer/buffer_block.cpp | 5 +++++ common/buffer/buffer_block.h | 5 +++++ common/buffer/buffer_interface.h | 5 +++++ common/buffer/buffer_queue.cpp | 5 +++++ common/buffer/buffer_queue.h | 5 +++++ common/log/base_logger.cpp | 5 +++++ common/log/base_logger.h | 5 +++++ common/log/file_logger.cpp | 5 +++++ common/log/file_logger.h | 5 +++++ common/log/log.cpp | 5 +++++ common/log/log.h | 5 +++++ common/log/logger_interface.h | 5 +++++ common/log/stdout_logger.cpp | 5 +++++ common/log/stdout_logger.h | 5 +++++ common/network/address.cpp | 5 +++++ common/network/address.h | 5 +++++ common/network/io_handle.h | 5 +++++ common/network/posix/io_handle.cpp | 5 +++++ common/network/posix/socket.cpp | 5 +++++ common/network/socket.h | 5 +++++ common/network/win/io_handle.cpp | 5 +++++ common/network/win/socket.cpp | 5 +++++ common/os/convert.h | 5 +++++ common/os/os_info.cpp | 5 +++++ common/os/os_info.h | 5 +++++ common/os/posix/convert.cpp | 5 +++++ common/os/win/convert.cpp | 5 +++++ common/structure/list.h | 5 +++++ common/structure/list_solt.h | 5 +++++ common/structure/thread_safe_block_queue.h | 5 +++++ common/structure/thread_safe_queue.h | 5 +++++ common/thread/thread.h | 5 +++++ common/thread/thread_with_queue.h | 5 +++++ common/timer/timer.cpp | 5 +++++ common/timer/timer.h | 5 +++++ common/timer/timer_1ms.cpp | 5 +++++ common/timer/timer_1ms.h | 5 +++++ common/timer/timer_container.cpp | 5 +++++ common/timer/timer_container.h | 5 +++++ common/timer/timer_interface.h | 5 +++++ common/timer/timer_solt.cpp | 5 +++++ common/timer/timer_solt.h | 5 +++++ common/util/any.h | 5 +++++ common/util/bitmap.cpp | 5 +++++ common/util/bitmap.h | 5 +++++ common/util/config.cpp | 5 +++++ common/util/config.h | 5 +++++ common/util/os_return.h | 5 +++++ common/util/random.cpp | 5 +++++ common/util/random.h | 5 +++++ common/util/singleton.h | 5 +++++ common/util/time.cpp | 5 +++++ common/util/time.h | 5 +++++ cppnet/cppnet.cpp | 5 +++++ cppnet/cppnet_base.cpp | 5 +++++ cppnet/cppnet_base.h | 5 +++++ cppnet/cppnet_config.h | 5 +++++ cppnet/cppnet_socket.cpp | 5 +++++ cppnet/dispatcher.cpp | 5 +++++ cppnet/dispatcher.h | 5 +++++ cppnet/event/action_interface.h | 5 +++++ cppnet/event/event_interface.cpp | 5 +++++ cppnet/event/event_interface.h | 5 +++++ cppnet/event/linux/epoll_action.cpp | 5 +++++ cppnet/event/linux/epoll_action.h | 5 +++++ cppnet/event/mac/kqueue_action.cpp | 5 +++++ cppnet/event/mac/kqueue_action.h | 5 +++++ cppnet/event/timer_event.cpp | 5 +++++ cppnet/event/timer_event.h | 5 +++++ cppnet/event/win/accept_event.h | 5 +++++ cppnet/event/win/expend_func.cpp | 5 +++++ cppnet/event/win/expend_func.h | 5 +++++ cppnet/event/win/iocp_action.cpp | 5 +++++ cppnet/event/win/iocp_action.h | 5 +++++ cppnet/event/win/rw_event.h | 5 +++++ cppnet/socket/connect_socket.cpp | 5 +++++ cppnet/socket/connect_socket.h | 5 +++++ cppnet/socket/posix/posix_connect_socket.cpp | 5 +++++ cppnet/socket/posix/posix_connect_socket.h | 5 +++++ cppnet/socket/posix/posix_rw_socket.cpp | 5 +++++ cppnet/socket/posix/posix_rw_socket.h | 5 +++++ cppnet/socket/rw_socket.cpp | 5 +++++ cppnet/socket/rw_socket.h | 5 +++++ cppnet/socket/socket_interface.cpp | 5 +++++ cppnet/socket/socket_interface.h | 5 +++++ cppnet/socket/win/win_connect_socket.cpp | 5 +++++ cppnet/socket/win/win_connect_socket.h | 5 +++++ cppnet/socket/win/win_rw_socket.cpp | 5 +++++ cppnet/socket/win/win_rw_socket.h | 5 +++++ include/cppnet.h | 5 +++++ include/cppnet_socket.h | 5 +++++ include/cppnet_type.h | 5 +++++ 100 files changed, 496 insertions(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 53f7d42..bd15f20 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ BSD 3-Clause License -Copyright (c) 2020, no_one +Copyright (c) 2020, caozhiyi All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/common/alloter/alloter_interface.h b/common/alloter/alloter_interface.h index 0167539..4b2cca2 100644 --- a/common/alloter/alloter_interface.h +++ b/common/alloter/alloter_interface.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_ALLOTER_ALLOTER_INTERFACE #define COMMON_ALLOTER_ALLOTER_INTERFACE diff --git a/common/alloter/normal_alloter.cpp b/common/alloter/normal_alloter.cpp index ddd7334..f34a6d1 100644 --- a/common/alloter/normal_alloter.cpp +++ b/common/alloter/normal_alloter.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include //for memset #include #include "normal_alloter.h" diff --git a/common/alloter/normal_alloter.h b/common/alloter/normal_alloter.h index c4f8538..3b47572 100644 --- a/common/alloter/normal_alloter.h +++ b/common/alloter/normal_alloter.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_ALLOTER_NORMAL_ALLOTER #define COMMON_ALLOTER_NORMAL_ALLOTER diff --git a/common/alloter/pool_alloter.cpp b/common/alloter/pool_alloter.cpp index 52063a1..34ec6d4 100644 --- a/common/alloter/pool_alloter.cpp +++ b/common/alloter/pool_alloter.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include diff --git a/common/alloter/pool_alloter.h b/common/alloter/pool_alloter.h index 9166377..fe14c94 100644 --- a/common/alloter/pool_alloter.h +++ b/common/alloter/pool_alloter.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_ALLOTER_POOL_ALLOTER #define COMMON_ALLOTER_POOL_ALLOTER diff --git a/common/alloter/pool_block.cpp b/common/alloter/pool_block.cpp index 702843b..cd911d5 100644 --- a/common/alloter/pool_block.cpp +++ b/common/alloter/pool_block.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include #include "pool_block.h" diff --git a/common/alloter/pool_block.h b/common/alloter/pool_block.h index c4d355b..7bac08e 100644 --- a/common/alloter/pool_block.h +++ b/common/alloter/pool_block.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_ALLOTER_POOL_BLOCK #define COMMON_ALLOTER_POOL_BLOCK diff --git a/common/buffer/buffer_block.cpp b/common/buffer/buffer_block.cpp index 1bd07ce..b9542cb 100644 --- a/common/buffer/buffer_block.cpp +++ b/common/buffer/buffer_block.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include "buffer_block.h" #include "common/alloter/pool_block.h" diff --git a/common/buffer/buffer_block.h b/common/buffer/buffer_block.h index 2c412f6..7c74c77 100644 --- a/common/buffer/buffer_block.h +++ b/common/buffer/buffer_block.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_BUFFER_BUFFER_BLOCK #define COMMON_BUFFER_BUFFER_BLOCK diff --git a/common/buffer/buffer_interface.h b/common/buffer/buffer_interface.h index e437d0e..665630d 100644 --- a/common/buffer/buffer_interface.h +++ b/common/buffer/buffer_interface.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_BUFFER_BUFFER_INTERFACE #define COMMON_BUFFER_BUFFER_INTERFACE diff --git a/common/buffer/buffer_queue.cpp b/common/buffer/buffer_queue.cpp index 5e52ff0..2156507 100644 --- a/common/buffer/buffer_queue.cpp +++ b/common/buffer/buffer_queue.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include "buffer_queue.h" #include "buffer_block.h" #include "common/alloter/pool_block.h" diff --git a/common/buffer/buffer_queue.h b/common/buffer/buffer_queue.h index e8bc364..69bed65 100644 --- a/common/buffer/buffer_queue.h +++ b/common/buffer/buffer_queue.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_BUFFER_BUFFER_QUEUE #define COMMON_BUFFER_BUFFER_QUEUE diff --git a/common/log/base_logger.cpp b/common/log/base_logger.cpp index 67f518a..f2937a5 100644 --- a/common/log/base_logger.cpp +++ b/common/log/base_logger.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include "base_logger.h" #include "logger_interface.h" #include "common/util/time.h" diff --git a/common/log/base_logger.h b/common/log/base_logger.h index 44a0f21..7063d01 100644 --- a/common/log/base_logger.h +++ b/common/log/base_logger.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef QUIC_COMMON_LOG_BASE_LOGGER #define QUIC_COMMON_LOG_BASE_LOGGER diff --git a/common/log/file_logger.cpp b/common/log/file_logger.cpp index e732567..46aab44 100644 --- a/common/log/file_logger.cpp +++ b/common/log/file_logger.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include diff --git a/common/log/file_logger.h b/common/log/file_logger.h index 181e626..61d7d9c 100644 --- a/common/log/file_logger.h +++ b/common/log/file_logger.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef QUIC_COMMON_LOG_FILE_LOGGER #define QUIC_COMMON_LOG_FILE_LOGGER diff --git a/common/log/log.cpp b/common/log/log.cpp index 76b4588..6bf0d25 100644 --- a/common/log/log.cpp +++ b/common/log/log.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include "log.h" diff --git a/common/log/log.h b/common/log/log.h index 6c3bd66..efd9c83 100644 --- a/common/log/log.h +++ b/common/log/log.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef QUIC_COMMON_LOG_LOG #define QUIC_COMMON_LOG_LOG diff --git a/common/log/logger_interface.h b/common/log/logger_interface.h index ef52788..0bd4b8b 100644 --- a/common/log/logger_interface.h +++ b/common/log/logger_interface.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef QUIC_COMMON_LOG_LOG_INTERFACE #define QUIC_COMMON_LOG_LOG_INTERFACE diff --git a/common/log/stdout_logger.cpp b/common/log/stdout_logger.cpp index bbc426d..e56bb7c 100644 --- a/common/log/stdout_logger.cpp +++ b/common/log/stdout_logger.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include "stdout_logger.h" diff --git a/common/log/stdout_logger.h b/common/log/stdout_logger.h index 1325999..9e2cada 100644 --- a/common/log/stdout_logger.h +++ b/common/log/stdout_logger.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef QUIC_COMMON_LOG_STDOUT_LOGGER #define QUIC_COMMON_LOG_STDOUT_LOGGER diff --git a/common/network/address.cpp b/common/network/address.cpp index 5359089..8212f12 100644 --- a/common/network/address.cpp +++ b/common/network/address.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include "address.h" diff --git a/common/network/address.h b/common/network/address.h index f91428f..08de366 100644 --- a/common/network/address.h +++ b/common/network/address.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_NETWORK_ADDRESS #define COMMON_NETWORK_ADDRESS diff --git a/common/network/io_handle.h b/common/network/io_handle.h index 00b256b..3b656e8 100644 --- a/common/network/io_handle.h +++ b/common/network/io_handle.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_NETWORK_IO_HANDLE #define COMMON_NETWORK_IO_HANDLE diff --git a/common/network/posix/io_handle.cpp b/common/network/posix/io_handle.cpp index 6882d4b..ebf3fe8 100644 --- a/common/network/posix/io_handle.cpp +++ b/common/network/posix/io_handle.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include #include diff --git a/common/network/posix/socket.cpp b/common/network/posix/socket.cpp index 35ea47d..6108004 100644 --- a/common/network/posix/socket.cpp +++ b/common/network/posix/socket.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include #include diff --git a/common/network/socket.h b/common/network/socket.h index 36e5173..07669b5 100644 --- a/common/network/socket.h +++ b/common/network/socket.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_NETWORK_SOCKET #define COMMON_NETWORK_SOCKET diff --git a/common/network/win/io_handle.cpp b/common/network/win/io_handle.cpp index 50924b1..288ccc5 100644 --- a/common/network/win/io_handle.cpp +++ b/common/network/win/io_handle.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include "../io_handle.h" diff --git a/common/network/win/socket.cpp b/common/network/win/socket.cpp index 28064f7..343b50c 100644 --- a/common/network/win/socket.cpp +++ b/common/network/win/socket.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include #include "../socket.h" diff --git a/common/os/convert.h b/common/os/convert.h index 30d5856..c387825 100644 --- a/common/os/convert.h +++ b/common/os/convert.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_OS_CONVERT #define COMMON_OS_CONVERT diff --git a/common/os/os_info.cpp b/common/os/os_info.cpp index b2d3e41..b9f8ebd 100644 --- a/common/os/os_info.cpp +++ b/common/os/os_info.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include "os_info.h" diff --git a/common/os/os_info.h b/common/os/os_info.h index 9aa818b..bee3fba 100644 --- a/common/os/os_info.h +++ b/common/os/os_info.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_OS_OS_INFO #define COMMON_OS_OS_INFO diff --git a/common/os/posix/convert.cpp b/common/os/posix/convert.cpp index 469b944..69e2e17 100644 --- a/common/os/posix/convert.cpp +++ b/common/os/posix/convert.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include #include "../convert.h" diff --git a/common/os/win/convert.cpp b/common/os/win/convert.cpp index 04e0a42..74bbe2b 100644 --- a/common/os/win/convert.cpp +++ b/common/os/win/convert.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include #include "../convert.h" diff --git a/common/structure/list.h b/common/structure/list.h index 828b116..eddb041 100644 --- a/common/structure/list.h +++ b/common/structure/list.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_STRUCTURE_LIST #define COMMON_STRUCTURE_LIST diff --git a/common/structure/list_solt.h b/common/structure/list_solt.h index 7a9a443..45ed935 100644 --- a/common/structure/list_solt.h +++ b/common/structure/list_solt.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_STRUCTURE_LIST_SOLT #define COMMON_STRUCTURE_LIST_SOLT diff --git a/common/structure/thread_safe_block_queue.h b/common/structure/thread_safe_block_queue.h index 65c061a..291a4ce 100644 --- a/common/structure/thread_safe_block_queue.h +++ b/common/structure/thread_safe_block_queue.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_STRUCTURE_THREAD_SAFE_BLOCK_QUEUE #define COMMON_STRUCTURE_THREAD_SAFE_BLOCK_QUEUE diff --git a/common/structure/thread_safe_queue.h b/common/structure/thread_safe_queue.h index 7fbceba..04cd69b 100644 --- a/common/structure/thread_safe_queue.h +++ b/common/structure/thread_safe_queue.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_STRUCTURE_THREAD_SAFE_QUEUE #define COMMON_STRUCTURE_THREAD_SAFE_QUEUE diff --git a/common/thread/thread.h b/common/thread/thread.h index e347d71..cbce84b 100644 --- a/common/thread/thread.h +++ b/common/thread/thread.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_THREAD_THREAD #define COMMON_THREAD_THREAD diff --git a/common/thread/thread_with_queue.h b/common/thread/thread_with_queue.h index 4016b56..20649bd 100644 --- a/common/thread/thread_with_queue.h +++ b/common/thread/thread_with_queue.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_THREAD_THREAD_WITH_QUEUE #define COMMON_THREAD_THREAD_WITH_QUEUE diff --git a/common/timer/timer.cpp b/common/timer/timer.cpp index 1a6c6ac..52d2b43 100644 --- a/common/timer/timer.cpp +++ b/common/timer/timer.cpp @@ -1,4 +1,9 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include "timer.h" #include "timer_1ms.h" #include "timer_container.h" diff --git a/common/timer/timer.h b/common/timer/timer.h index 628480d..7387b06 100644 --- a/common/timer/timer.h +++ b/common/timer/timer.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_TIMER_TIMER #define COMMON_TIMER_TIMER diff --git a/common/timer/timer_1ms.cpp b/common/timer/timer_1ms.cpp index bab0ae0..3c7e68f 100644 --- a/common/timer/timer_1ms.cpp +++ b/common/timer/timer_1ms.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include "timer_1ms.h" namespace cppnet { diff --git a/common/timer/timer_1ms.h b/common/timer/timer_1ms.h index 70f6c83..090dd45 100644 --- a/common/timer/timer_1ms.h +++ b/common/timer/timer_1ms.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_TIMER_TIMER_1MS #define COMMON_TIMER_TIMER_1MS diff --git a/common/timer/timer_container.cpp b/common/timer/timer_container.cpp index 1c49506..74a0099 100644 --- a/common/timer/timer_container.cpp +++ b/common/timer/timer_container.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include // for min diff --git a/common/timer/timer_container.h b/common/timer/timer_container.h index 9a647ea..f1fa429 100644 --- a/common/timer/timer_container.h +++ b/common/timer/timer_container.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_TIMER_TIMER_CONTAINER #define COMMON_TIMER_TIMER_CONTAINER diff --git a/common/timer/timer_interface.h b/common/timer/timer_interface.h index 8ef254d..972c659 100644 --- a/common/timer/timer_interface.h +++ b/common/timer/timer_interface.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_TIMER_TIMER_INTERFACE #define COMMON_TIMER_TIMER_INTERFACE diff --git a/common/timer/timer_solt.cpp b/common/timer/timer_solt.cpp index 933f41c..c16b7a0 100644 --- a/common/timer/timer_solt.cpp +++ b/common/timer/timer_solt.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include "timer_solt.h" namespace cppnet { diff --git a/common/timer/timer_solt.h b/common/timer/timer_solt.h index 3dfdf14..534cfda 100644 --- a/common/timer/timer_solt.h +++ b/common/timer/timer_solt.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_TIMER_TIMER_SOLT #define COMMON_TIMER_TIMER_SOLT diff --git a/common/util/any.h b/common/util/any.h index e09a6a7..43a3710 100644 --- a/common/util/any.h +++ b/common/util/any.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_UTIL_ANY #define COMMON_UTIL_ANY diff --git a/common/util/bitmap.cpp b/common/util/bitmap.cpp index 6d3a2c1..c1462fb 100644 --- a/common/util/bitmap.cpp +++ b/common/util/bitmap.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include "bitmap.h" diff --git a/common/util/bitmap.h b/common/util/bitmap.h index eeb1d15..41aaf9d 100644 --- a/common/util/bitmap.h +++ b/common/util/bitmap.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_UTIL_BITMAP #define COMMON_UTIL_BITMAP diff --git a/common/util/config.cpp b/common/util/config.cpp index 01754fc..099e1fb 100644 --- a/common/util/config.cpp +++ b/common/util/config.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include diff --git a/common/util/config.h b/common/util/config.h index a4471ac..92285e4 100644 --- a/common/util/config.h +++ b/common/util/config.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_UTIL_CONFIG #define COMMON_UTIL_CONFIG diff --git a/common/util/os_return.h b/common/util/os_return.h index a6b9bd2..4d4c7e7 100644 --- a/common/util/os_return.h +++ b/common/util/os_return.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_UTIL_OS_RETURN #define COMMON_UTIL_OS_RETURN diff --git a/common/util/random.cpp b/common/util/random.cpp index bce992a..eae1e77 100644 --- a/common/util/random.cpp +++ b/common/util/random.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include "random.h" diff --git a/common/util/random.h b/common/util/random.h index ae9ea30..06d2c4f 100644 --- a/common/util/random.h +++ b/common/util/random.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_UTIL_RANDOM #define COMMON_UTIL_RANDOM diff --git a/common/util/singleton.h b/common/util/singleton.h index 9b2b01e..5b4cc9b 100644 --- a/common/util/singleton.h +++ b/common/util/singleton.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_UTIL_SINGLETON #define COMMON_UTIL_SINGLETON diff --git a/common/util/time.cpp b/common/util/time.cpp index cd0f214..e2667a6 100644 --- a/common/util/time.cpp +++ b/common/util/time.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include #include "time.h" diff --git a/common/util/time.h b/common/util/time.h index da8ae72..2ffcdf9 100644 --- a/common/util/time.h +++ b/common/util/time.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef COMMON_UTIL_TIME #define COMMON_UTIL_TIME diff --git a/cppnet/cppnet.cpp b/cppnet/cppnet.cpp index e74fd90..cabe6fd 100644 --- a/cppnet/cppnet.cpp +++ b/cppnet/cppnet.cpp @@ -3,6 +3,11 @@ #include "cppnet_base.h" #include "cppnet/cppnet_config.h" +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include "common/log/log.h" #include "common/log/file_logger.h" #include "common/log/stdout_logger.h" diff --git a/cppnet/cppnet_base.cpp b/cppnet/cppnet_base.cpp index ee2251a..24320f3 100644 --- a/cppnet/cppnet_base.cpp +++ b/cppnet/cppnet_base.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include "cppnet_base.h" #include "cppnet/dispatcher.h" #include "include/cppnet_type.h" diff --git a/cppnet/cppnet_base.h b/cppnet/cppnet_base.h index 064fdda..d921197 100644 --- a/cppnet/cppnet_base.h +++ b/cppnet/cppnet_base.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef CPPNET_CPPNET_BASE #define CPPNET_CPPNET_BASE diff --git a/cppnet/cppnet_config.h b/cppnet/cppnet_config.h index 309659a..bffb7a0 100644 --- a/cppnet/cppnet_config.h +++ b/cppnet/cppnet_config.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef CPPNET_CPPNET_CONFIGE #define CPPNET_CPPNET_CONFIGE diff --git a/cppnet/cppnet_socket.cpp b/cppnet/cppnet_socket.cpp index 4963836..37bd7cc 100644 --- a/cppnet/cppnet_socket.cpp +++ b/cppnet/cppnet_socket.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include "include/cppnet_socket.h" namespace cppnet { diff --git a/cppnet/dispatcher.cpp b/cppnet/dispatcher.cpp index c0a56a6..52bac99 100644 --- a/cppnet/dispatcher.cpp +++ b/cppnet/dispatcher.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include "dispatcher.h" diff --git a/cppnet/dispatcher.h b/cppnet/dispatcher.h index 09022fb..218e911 100644 --- a/cppnet/dispatcher.h +++ b/cppnet/dispatcher.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef CPPNET_DISPATCHER #define CPPNET_DISPATCHER diff --git a/cppnet/event/action_interface.h b/cppnet/event/action_interface.h index 8083f85..37c888b 100644 --- a/cppnet/event/action_interface.h +++ b/cppnet/event/action_interface.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef CPPNET_EVENT_ACTION_INTERFACE #define CPPNET_EVENT_ACTION_INTERFACE diff --git a/cppnet/event/event_interface.cpp b/cppnet/event/event_interface.cpp index bdf14b5..20334b6 100644 --- a/cppnet/event/event_interface.cpp +++ b/cppnet/event/event_interface.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include "event_interface.h" namespace cppnet { diff --git a/cppnet/event/event_interface.h b/cppnet/event/event_interface.h index 31b123c..036b356 100644 --- a/cppnet/event/event_interface.h +++ b/cppnet/event/event_interface.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef CPPNET_EVENT_EVENT_INTERFACE #define CPPNET_EVENT_EVENT_INTERFACE diff --git a/cppnet/event/linux/epoll_action.cpp b/cppnet/event/linux/epoll_action.cpp index 20871da..53c00dd 100644 --- a/cppnet/event/linux/epoll_action.cpp +++ b/cppnet/event/linux/epoll_action.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include #include diff --git a/cppnet/event/linux/epoll_action.h b/cppnet/event/linux/epoll_action.h index 8645022..515f66d 100644 --- a/cppnet/event/linux/epoll_action.h +++ b/cppnet/event/linux/epoll_action.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef NET_EVENT_LINUX_EPOLL_ACTION #define NET_EVENT_LINUX_EPOLL_ACTION diff --git a/cppnet/event/mac/kqueue_action.cpp b/cppnet/event/mac/kqueue_action.cpp index c43f96a..02af750 100644 --- a/cppnet/event/mac/kqueue_action.cpp +++ b/cppnet/event/mac/kqueue_action.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include // for close diff --git a/cppnet/event/mac/kqueue_action.h b/cppnet/event/mac/kqueue_action.h index 9312111..a9e4eea 100644 --- a/cppnet/event/mac/kqueue_action.h +++ b/cppnet/event/mac/kqueue_action.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef NET_EVENT_MAC_KQUEUE_ACTION #define NET_EVENT_MAC_KQUEUE_ACTION diff --git a/cppnet/event/timer_event.cpp b/cppnet/event/timer_event.cpp index 28a0ed3..3ec346a 100644 --- a/cppnet/event/timer_event.cpp +++ b/cppnet/event/timer_event.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include "timer_event.h" #include "common/log/log.h" #include "cppnet/socket/rw_socket.h" diff --git a/cppnet/event/timer_event.h b/cppnet/event/timer_event.h index b929001..2b9599d 100644 --- a/cppnet/event/timer_event.h +++ b/cppnet/event/timer_event.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef CPPNET_EVENT_TIMER_EVENT #define CPPNET_EVENT_TIMER_EVENT diff --git a/cppnet/event/win/accept_event.h b/cppnet/event/win/accept_event.h index 838068e..938de83 100644 --- a/cppnet/event/win/accept_event.h +++ b/cppnet/event/win/accept_event.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef CPPNET_EVENT_WIN_ACCEPT_EVENT #define CPPNET_EVENT_WIN_ACCEPT_EVENT diff --git a/cppnet/event/win/expend_func.cpp b/cppnet/event/win/expend_func.cpp index 36b03eb..79456d6 100644 --- a/cppnet/event/win/expend_func.cpp +++ b/cppnet/event/win/expend_func.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include "expend_func.h" #include "common/log/log.h" diff --git a/cppnet/event/win/expend_func.h b/cppnet/event/win/expend_func.h index 5de4911..827b70e 100644 --- a/cppnet/event/win/expend_func.h +++ b/cppnet/event/win/expend_func.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef CPPNET_EVENT_WIN_EXPEND_FUNC #define CPPNET_EVENT_WIN_EXPEND_FUNC diff --git a/cppnet/event/win/iocp_action.cpp b/cppnet/event/win/iocp_action.cpp index 7c39366..274a769 100644 --- a/cppnet/event/win/iocp_action.cpp +++ b/cppnet/event/win/iocp_action.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include "expend_func.h" #include "iocp_action.h" diff --git a/cppnet/event/win/iocp_action.h b/cppnet/event/win/iocp_action.h index da24a48..585fc9b 100644 --- a/cppnet/event/win/iocp_action.h +++ b/cppnet/event/win/iocp_action.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef CPPNET_EVENT_WIN_IOCP_ACTION #define CPPNET_EVENT_WIN_IOCP_ACTION diff --git a/cppnet/event/win/rw_event.h b/cppnet/event/win/rw_event.h index 8c1dc63..c92846a 100644 --- a/cppnet/event/win/rw_event.h +++ b/cppnet/event/win/rw_event.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef CPPNET_EVENT_WIN_RW_EVENT #define CPPNET_EVENT_WIN_RW_EVENT diff --git a/cppnet/socket/connect_socket.cpp b/cppnet/socket/connect_socket.cpp index c7983d0..3063a3e 100644 --- a/cppnet/socket/connect_socket.cpp +++ b/cppnet/socket/connect_socket.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include diff --git a/cppnet/socket/connect_socket.h b/cppnet/socket/connect_socket.h index 7b0fcaf..f955a10 100644 --- a/cppnet/socket/connect_socket.h +++ b/cppnet/socket/connect_socket.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef CPPNET_SOCKET_CONNECT_SOCKET #define CPPNET_SOCKET_CONNECT_SOCKET diff --git a/cppnet/socket/posix/posix_connect_socket.cpp b/cppnet/socket/posix/posix_connect_socket.cpp index f86adf8..91e7f3b 100644 --- a/cppnet/socket/posix/posix_connect_socket.cpp +++ b/cppnet/socket/posix/posix_connect_socket.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include "posix_connect_socket.h" diff --git a/cppnet/socket/posix/posix_connect_socket.h b/cppnet/socket/posix/posix_connect_socket.h index 501424c..8472517 100644 --- a/cppnet/socket/posix/posix_connect_socket.h +++ b/cppnet/socket/posix/posix_connect_socket.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef CPPNET_SOCKET_POSIX_CONNECT_SOCKET #define CPPNET_SOCKET_POSIX_CONNECT_SOCKET diff --git a/cppnet/socket/posix/posix_rw_socket.cpp b/cppnet/socket/posix/posix_rw_socket.cpp index a03b6a4..6d4a4ad 100644 --- a/cppnet/socket/posix/posix_rw_socket.cpp +++ b/cppnet/socket/posix/posix_rw_socket.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include "posix_rw_socket.h" diff --git a/cppnet/socket/posix/posix_rw_socket.h b/cppnet/socket/posix/posix_rw_socket.h index fc2c872..7660a8d 100644 --- a/cppnet/socket/posix/posix_rw_socket.h +++ b/cppnet/socket/posix/posix_rw_socket.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef CPPNET_SOCKET_POSIX_READ_WRITE_SOCKET #define CPPNET_SOCKET_POSIX_READ_WRITE_SOCKET diff --git a/cppnet/socket/rw_socket.cpp b/cppnet/socket/rw_socket.cpp index d62acfa..5b401e8 100644 --- a/cppnet/socket/rw_socket.cpp +++ b/cppnet/socket/rw_socket.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include #include "rw_socket.h" diff --git a/cppnet/socket/rw_socket.h b/cppnet/socket/rw_socket.h index ff821fa..d38f8f1 100644 --- a/cppnet/socket/rw_socket.h +++ b/cppnet/socket/rw_socket.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef CPPNET_SOCKET_READ_WRITE_SOCKET #define CPPNET_SOCKET_READ_WRITE_SOCKET diff --git a/cppnet/socket/socket_interface.cpp b/cppnet/socket/socket_interface.cpp index 5d5f2fc..10cfb43 100644 --- a/cppnet/socket/socket_interface.cpp +++ b/cppnet/socket/socket_interface.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include "socket_interface.h" namespace cppnet { diff --git a/cppnet/socket/socket_interface.h b/cppnet/socket/socket_interface.h index 722373e..d69ae47 100644 --- a/cppnet/socket/socket_interface.h +++ b/cppnet/socket/socket_interface.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef CPPNET_SOCKET_SOCKET_INTERFACE #define CPPNET_SOCKET_SOCKET_INTERFACE diff --git a/cppnet/socket/win/win_connect_socket.cpp b/cppnet/socket/win/win_connect_socket.cpp index 5566adb..59dbd7b 100644 --- a/cppnet/socket/win/win_connect_socket.cpp +++ b/cppnet/socket/win/win_connect_socket.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include "win_connect_socket.h" #include "cppnet/cppnet_base.h" diff --git a/cppnet/socket/win/win_connect_socket.h b/cppnet/socket/win/win_connect_socket.h index 2fc0e87..f45e6e9 100644 --- a/cppnet/socket/win/win_connect_socket.h +++ b/cppnet/socket/win/win_connect_socket.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef CPPNET_SOCKET_POSIX_CONNECT_SOCKET #define CPPNET_SOCKET_POSIX_CONNECT_SOCKET diff --git a/cppnet/socket/win/win_rw_socket.cpp b/cppnet/socket/win/win_rw_socket.cpp index 9827aca..65a68ea 100644 --- a/cppnet/socket/win/win_rw_socket.cpp +++ b/cppnet/socket/win/win_rw_socket.cpp @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #include "win_rw_socket.h" #include "cppnet/cppnet_base.h" diff --git a/cppnet/socket/win/win_rw_socket.h b/cppnet/socket/win/win_rw_socket.h index 558d198..f876165 100644 --- a/cppnet/socket/win/win_rw_socket.h +++ b/cppnet/socket/win/win_rw_socket.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef CPPNET_SOCKET_WIN_READ_WRITE_SOCKET #define CPPNET_SOCKET_WIN_READ_WRITE_SOCKET diff --git a/include/cppnet.h b/include/cppnet.h index 3bdd3c6..8682b5f 100644 --- a/include/cppnet.h +++ b/include/cppnet.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef INCLUDE_CPPNET #define INCLUDE_CPPNET diff --git a/include/cppnet_socket.h b/include/cppnet_socket.h index 6d8b084..fcd9102 100644 --- a/include/cppnet_socket.h +++ b/include/cppnet_socket.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef INCLUDE_CPPNET_SOCKET #define INCLUDE_CPPNET_SOCKET diff --git a/include/cppnet_type.h b/include/cppnet_type.h index 3a8301e..c465e39 100644 --- a/include/cppnet_type.h +++ b/include/cppnet_type.h @@ -1,3 +1,8 @@ +// Use of this source code is governed by a BSD 3-Clause License +// that can be found in the LICENSE file. + +// Author: caozhiyi (caozhiyi5@gmail.com) + #ifndef INCLUDE_CPPNET_TYPE #define INCLUDE_CPPNET_TYPE