mirror of
https://github.com/caozhiyi/CppNet.git
synced 2026-01-12 00:19:01 +08:00
add agreement statement.
This commit is contained in:
2
LICENSE
2
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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 <cstring> //for memset
|
||||
#include <cstdlib>
|
||||
#include "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
|
||||
|
||||
|
||||
@@ -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 <cstring>
|
||||
#include <cstdlib>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 <cstdlib>
|
||||
#include <algorithm>
|
||||
#include "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
|
||||
|
||||
|
||||
@@ -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 <cstring>
|
||||
#include "buffer_block.h"
|
||||
#include "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_BUFFER_BUFFER_BLOCK
|
||||
#define COMMON_BUFFER_BUFFER_BLOCK
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 <cstdio>
|
||||
#include <cstring>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 <stdarg.h>
|
||||
|
||||
#include "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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 <iostream>
|
||||
#include "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
|
||||
|
||||
|
||||
@@ -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 <ostream>
|
||||
#include "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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/uio.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)
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <sys/poll.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
|
||||
|
||||
|
||||
@@ -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 <winsock2.h>
|
||||
|
||||
#include "../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)
|
||||
|
||||
#include <winsock2.h>
|
||||
#include <Mswsock.h >
|
||||
#include "../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_OS_CONVERT
|
||||
#define COMMON_OS_CONVERT
|
||||
|
||||
|
||||
@@ -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 <thread>
|
||||
#include "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
|
||||
|
||||
|
||||
@@ -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 <time.h>
|
||||
#include <string.h>
|
||||
#include "../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)
|
||||
|
||||
#include <time.h>
|
||||
#include <Windows.h>
|
||||
#include "../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_STRUCTURE_LIST
|
||||
#define COMMON_STRUCTURE_LIST
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 <assert.h>
|
||||
#include <algorithm> // for min
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 <cmath>
|
||||
#include "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
|
||||
|
||||
|
||||
@@ -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 <fstream>
|
||||
#include <cstring>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 <random>
|
||||
#include "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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 <chrono>
|
||||
#include <thread>
|
||||
#include "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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 <map>
|
||||
|
||||
#include "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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 <thread>
|
||||
#include <cstring>
|
||||
#include <unistd.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
|
||||
|
||||
|
||||
@@ -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 <thread>
|
||||
#include <unistd.h> // for close
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 <string>
|
||||
#include <errno.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
|
||||
|
||||
|
||||
@@ -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 <errno.h>
|
||||
|
||||
#include "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
|
||||
|
||||
|
||||
@@ -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 <errno.h>
|
||||
#include "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
|
||||
|
||||
|
||||
@@ -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 <errno.h>
|
||||
|
||||
#include "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
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user