add agreement statement.

This commit is contained in:
caozhiyi
2021-04-07 18:45:00 +08:00
parent 21122f3829
commit a576b019db
100 changed files with 496 additions and 1 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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>

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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>

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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>

View File

@@ -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>

View File

@@ -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

View File

@@ -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"

View File

@@ -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"

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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"

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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 {

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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 {

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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>

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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"

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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 {

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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 {

View File

@@ -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

View File

@@ -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>

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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>

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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 {

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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