添加libevent
parent
3afa15d060
commit
0777acdb1b
|
@ -12,9 +12,22 @@
|
|||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="0facce0d-c642-4d80-b2fb-daf5f3e68dff" name="Default Changelist" comment="">
|
||||
<change afterPath="$PROJECT_DIR$/src/net/TcpClient.cpp" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/src/net/TcpClient.h" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/inc/utils.h" beforeDir="false" afterPath="$PROJECT_DIR$/inc/utils.h" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/pattern/signleton.h" beforeDir="false" afterPath="$PROJECT_DIR$/src/pattern/signleton.h" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/CMakeLists.txt" beforeDir="false" afterPath="$PROJECT_DIR$/CMakeLists.txt" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/DependInfo.cmake" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/DependInfo.cmake" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/build.make" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/build.make" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/cmake_clean.cmake" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/cmake_clean.cmake" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/link.txt" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/link.txt" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/progress.make" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/progress.make" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/Makefile2" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/Makefile2" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/clion-log.txt" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/clion-log.txt" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/progress.marks" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/progress.marks" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/General.cbp" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/General.cbp" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/Makefile" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/Makefile" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/obj/inc/signleton.h" beforeDir="false" afterPath="$PROJECT_DIR$/obj/inc/signleton.h" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/obj/inc/utils.h" beforeDir="false" afterPath="$PROJECT_DIR$/obj/inc/utils.h" afterDir="false" />
|
||||
</list>
|
||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
|
@ -102,7 +115,9 @@
|
|||
<workItem from="1583501235151" duration="617000" />
|
||||
<workItem from="1584890523991" duration="223000" />
|
||||
<workItem from="1585674715896" duration="786000" />
|
||||
<workItem from="1585735060761" duration="922000" />
|
||||
<workItem from="1585735060761" duration="2165000" />
|
||||
<workItem from="1585797079455" duration="1848000" />
|
||||
<workItem from="1587146367315" duration="670000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
|
|
|
@ -11,7 +11,7 @@ aux_source_directory(src DIRSRCS)
|
|||
aux_source_directory(src/pattern PaternSrc)
|
||||
|
||||
add_library(General ${DIRSRCS} ${PaternSrc} src/pattern/signleton.h src/pattern/Observer.h src/pattern/stratergy.h src/pattern/adapter.h src/encrypt/base64.cpp src/encrypt/base64.h src/encrypt/aes.cpp src/encrypt/aes.h src/encrypt/rsa.cpp
|
||||
src/math/BigInt.hpp)
|
||||
src/math/BigInt.hpp src/net/TcpClient.cpp src/net/TcpClient.h)
|
||||
set(COPYITEM inc)
|
||||
file(GLOB INCLUDES ${PROJECT_SOURCE_DIR}/inc/*)
|
||||
file(COPY ${INCLUDES} DESTINATION ${LIBRARY_OUTPUT_PATH}/inc
|
||||
|
|
|
@ -9,6 +9,7 @@ set(CMAKE_DEPENDS_CHECK_CXX
|
|||
"D:/project/c++/generallib/src/encrypt/base64.cpp" "D:/project/c++/generallib/cmake-build-debug/CMakeFiles/General.dir/src/encrypt/base64.cpp.obj"
|
||||
"D:/project/c++/generallib/src/encrypt/rsa.cpp" "D:/project/c++/generallib/cmake-build-debug/CMakeFiles/General.dir/src/encrypt/rsa.cpp.obj"
|
||||
"D:/project/c++/generallib/src/loger.cpp" "D:/project/c++/generallib/cmake-build-debug/CMakeFiles/General.dir/src/loger.cpp.obj"
|
||||
"D:/project/c++/generallib/src/net/TcpClient.cpp" "D:/project/c++/generallib/cmake-build-debug/CMakeFiles/General.dir/src/net/TcpClient.cpp.obj"
|
||||
"D:/project/c++/generallib/src/utils.cpp" "D:/project/c++/generallib/cmake-build-debug/CMakeFiles/General.dir/src/utils.cpp.obj"
|
||||
)
|
||||
set(CMAKE_CXX_COMPILER_ID "GNU")
|
||||
|
|
|
@ -140,6 +140,20 @@ CMakeFiles/General.dir/src/encrypt/rsa.cpp.s: cmake_force
|
|||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/General.dir/src/encrypt/rsa.cpp.s"
|
||||
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S D:\project\c++\generallib\src\encrypt\rsa.cpp -o CMakeFiles\General.dir\src\encrypt\rsa.cpp.s
|
||||
|
||||
CMakeFiles/General.dir/src/net/TcpClient.cpp.obj: CMakeFiles/General.dir/flags.make
|
||||
CMakeFiles/General.dir/src/net/TcpClient.cpp.obj: CMakeFiles/General.dir/includes_CXX.rsp
|
||||
CMakeFiles/General.dir/src/net/TcpClient.cpp.obj: ../src/net/TcpClient.cpp
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=D:\project\c++\generallib\cmake-build-debug\CMakeFiles --progress-num=$(CMAKE_PROGRESS_7) "Building CXX object CMakeFiles/General.dir/src/net/TcpClient.cpp.obj"
|
||||
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles\General.dir\src\net\TcpClient.cpp.obj -c D:\project\c++\generallib\src\net\TcpClient.cpp
|
||||
|
||||
CMakeFiles/General.dir/src/net/TcpClient.cpp.i: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/General.dir/src/net/TcpClient.cpp.i"
|
||||
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E D:\project\c++\generallib\src\net\TcpClient.cpp > CMakeFiles\General.dir\src\net\TcpClient.cpp.i
|
||||
|
||||
CMakeFiles/General.dir/src/net/TcpClient.cpp.s: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/General.dir/src/net/TcpClient.cpp.s"
|
||||
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S D:\project\c++\generallib\src\net\TcpClient.cpp -o CMakeFiles\General.dir\src\net\TcpClient.cpp.s
|
||||
|
||||
# Object files for target General
|
||||
General_OBJECTS = \
|
||||
"CMakeFiles/General.dir/src/debug.cpp.obj" \
|
||||
|
@ -147,7 +161,8 @@ General_OBJECTS = \
|
|||
"CMakeFiles/General.dir/src/utils.cpp.obj" \
|
||||
"CMakeFiles/General.dir/src/encrypt/base64.cpp.obj" \
|
||||
"CMakeFiles/General.dir/src/encrypt/aes.cpp.obj" \
|
||||
"CMakeFiles/General.dir/src/encrypt/rsa.cpp.obj"
|
||||
"CMakeFiles/General.dir/src/encrypt/rsa.cpp.obj" \
|
||||
"CMakeFiles/General.dir/src/net/TcpClient.cpp.obj"
|
||||
|
||||
# External object files for target General
|
||||
General_EXTERNAL_OBJECTS =
|
||||
|
@ -158,9 +173,10 @@ General_EXTERNAL_OBJECTS =
|
|||
../obj/libGeneral.a: CMakeFiles/General.dir/src/encrypt/base64.cpp.obj
|
||||
../obj/libGeneral.a: CMakeFiles/General.dir/src/encrypt/aes.cpp.obj
|
||||
../obj/libGeneral.a: CMakeFiles/General.dir/src/encrypt/rsa.cpp.obj
|
||||
../obj/libGeneral.a: CMakeFiles/General.dir/src/net/TcpClient.cpp.obj
|
||||
../obj/libGeneral.a: CMakeFiles/General.dir/build.make
|
||||
../obj/libGeneral.a: CMakeFiles/General.dir/link.txt
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=D:\project\c++\generallib\cmake-build-debug\CMakeFiles --progress-num=$(CMAKE_PROGRESS_7) "Linking CXX static library ..\obj\libGeneral.a"
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=D:\project\c++\generallib\cmake-build-debug\CMakeFiles --progress-num=$(CMAKE_PROGRESS_8) "Linking CXX static library ..\obj\libGeneral.a"
|
||||
$(CMAKE_COMMAND) -P CMakeFiles\General.dir\cmake_clean_target.cmake
|
||||
cp -r D:/project/c++/generallib/src/math/Eigen D:/project/c++/generallib/obj/inc/
|
||||
$(CMAKE_COMMAND) -E cmake_link_script CMakeFiles\General.dir\link.txt --verbose=$(VERBOSE)
|
||||
|
|
|
@ -6,6 +6,7 @@ file(REMOVE_RECURSE
|
|||
"CMakeFiles/General.dir/src/encrypt/base64.cpp.obj"
|
||||
"CMakeFiles/General.dir/src/encrypt/rsa.cpp.obj"
|
||||
"CMakeFiles/General.dir/src/loger.cpp.obj"
|
||||
"CMakeFiles/General.dir/src/net/TcpClient.cpp.obj"
|
||||
"CMakeFiles/General.dir/src/utils.cpp.obj"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
C:\msys64\mingw64\bin\ar.exe qc ..\obj\libGeneral.a CMakeFiles/General.dir/src/debug.cpp.obj CMakeFiles/General.dir/src/loger.cpp.obj CMakeFiles/General.dir/src/utils.cpp.obj CMakeFiles/General.dir/src/encrypt/base64.cpp.obj CMakeFiles/General.dir/src/encrypt/aes.cpp.obj CMakeFiles/General.dir/src/encrypt/rsa.cpp.obj
|
||||
C:\msys64\mingw64\bin\ar.exe qc ..\obj\libGeneral.a CMakeFiles/General.dir/src/debug.cpp.obj CMakeFiles/General.dir/src/loger.cpp.obj CMakeFiles/General.dir/src/utils.cpp.obj CMakeFiles/General.dir/src/encrypt/base64.cpp.obj CMakeFiles/General.dir/src/encrypt/aes.cpp.obj CMakeFiles/General.dir/src/encrypt/rsa.cpp.obj CMakeFiles/General.dir/src/net/TcpClient.cpp.obj
|
||||
C:\msys64\mingw64\bin\ranlib.exe ..\obj\libGeneral.a
|
||||
|
|
|
@ -5,4 +5,5 @@ CMAKE_PROGRESS_4 = 4
|
|||
CMAKE_PROGRESS_5 = 5
|
||||
CMAKE_PROGRESS_6 = 6
|
||||
CMAKE_PROGRESS_7 = 7
|
||||
CMAKE_PROGRESS_8 = 8
|
||||
|
||||
|
|
|
@ -73,12 +73,12 @@ preinstall:
|
|||
CMakeFiles/General.dir/all:
|
||||
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/depend
|
||||
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/build
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=D:\project\c++\generallib\cmake-build-debug\CMakeFiles --progress-num=1,2,3,4,5,6,7 "Built target General"
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=D:\project\c++\generallib\cmake-build-debug\CMakeFiles --progress-num=1,2,3,4,5,6,7,8 "Built target General"
|
||||
.PHONY : CMakeFiles/General.dir/all
|
||||
|
||||
# Build rule for subdir invocation for target.
|
||||
CMakeFiles/General.dir/rule: cmake_check_build_system
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start D:\project\c++\generallib\cmake-build-debug\CMakeFiles 7
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start D:\project\c++\generallib\cmake-build-debug\CMakeFiles 8
|
||||
$(MAKE) -f CMakeFiles\Makefile2 CMakeFiles/General.dir/all
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start D:\project\c++\generallib\cmake-build-debug\CMakeFiles 0
|
||||
.PHONY : CMakeFiles/General.dir/rule
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"C:\Program Files\JetBrains\CLion\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=C:/msys64/mingw64/bin/mingw32-make.exe -G "CodeBlocks - MinGW Makefiles" D:\project\c++\generallib
|
||||
statusD:/project/c++/generallib/inc/debug.hD:/project/c++/generallib/inc/loger.hD:/project/c++/generallib/inc/utils.h
|
||||
copy pattern libraryD:/project/c++/generallib/src/pattern/Observer.hD:/project/c++/generallib/src/pattern/adapter.hD:/project/c++/generallib/src/pattern/signleton.hD:/project/c++/generallib/src/pattern/stratergy.h
|
||||
statusD:/project/c++/generallib/inc/debug.hD:/project/c++/generallib/inc/gladD:/project/c++/generallib/inc/loger.hD:/project/c++/generallib/inc/utils.h
|
||||
copy pattern libraryD:/project/c++/generallib/src/pattern/Observer.hD:/project/c++/generallib/src/pattern/adapter.hD:/project/c++/generallib/src/pattern/fsm.hD:/project/c++/generallib/src/pattern/signleton.hD:/project/c++/generallib/src/pattern/stratergy.h
|
||||
copy math libraryD:/project/c++/generallib/src/math/BigInt.hpp
|
||||
copy eigen library
|
||||
-- Configuring done
|
||||
|
|
|
@ -1 +1 @@
|
|||
7
|
||||
8
|
||||
|
|
|
@ -117,6 +117,12 @@
|
|||
<Unit filename="D:/project/c++/generallib/src/math/BigInt.hpp">
|
||||
<Option target="General"/>
|
||||
</Unit>
|
||||
<Unit filename="D:/project/c++/generallib/src/net/TcpClient.cpp">
|
||||
<Option target="General"/>
|
||||
</Unit>
|
||||
<Unit filename="D:/project/c++/generallib/src/net/TcpClient.h">
|
||||
<Option target="General"/>
|
||||
</Unit>
|
||||
<Unit filename="D:/project/c++/generallib/src/pattern/Observer.h">
|
||||
<Option target="General"/>
|
||||
</Unit>
|
||||
|
|
|
@ -257,6 +257,33 @@ src/loger.cpp.s:
|
|||
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/src/loger.cpp.s
|
||||
.PHONY : src/loger.cpp.s
|
||||
|
||||
src/net/TcpClient.obj: src/net/TcpClient.cpp.obj
|
||||
|
||||
.PHONY : src/net/TcpClient.obj
|
||||
|
||||
# target to build an object file
|
||||
src/net/TcpClient.cpp.obj:
|
||||
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/src/net/TcpClient.cpp.obj
|
||||
.PHONY : src/net/TcpClient.cpp.obj
|
||||
|
||||
src/net/TcpClient.i: src/net/TcpClient.cpp.i
|
||||
|
||||
.PHONY : src/net/TcpClient.i
|
||||
|
||||
# target to preprocess a source file
|
||||
src/net/TcpClient.cpp.i:
|
||||
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/src/net/TcpClient.cpp.i
|
||||
.PHONY : src/net/TcpClient.cpp.i
|
||||
|
||||
src/net/TcpClient.s: src/net/TcpClient.cpp.s
|
||||
|
||||
.PHONY : src/net/TcpClient.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
src/net/TcpClient.cpp.s:
|
||||
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/src/net/TcpClient.cpp.s
|
||||
.PHONY : src/net/TcpClient.cpp.s
|
||||
|
||||
src/utils.obj: src/utils.cpp.obj
|
||||
|
||||
.PHONY : src/utils.obj
|
||||
|
@ -308,6 +335,9 @@ help:
|
|||
@echo ... src/loger.obj
|
||||
@echo ... src/loger.i
|
||||
@echo ... src/loger.s
|
||||
@echo ... src/net/TcpClient.obj
|
||||
@echo ... src/net/TcpClient.i
|
||||
@echo ... src/net/TcpClient.s
|
||||
@echo ... src/utils.obj
|
||||
@echo ... src/utils.i
|
||||
@echo ... src/utils.s
|
||||
|
|
|
@ -19,14 +19,13 @@ public:
|
|||
return mInstance.get();
|
||||
}
|
||||
private:
|
||||
Singletone<T>(){};
|
||||
~Singletone<T>(){};
|
||||
Singletone &operator=(const Singletone&){};
|
||||
Singletone<T>(){}
|
||||
~Singletone<T>(){}
|
||||
Singletone &operator=(const Singletone&){}
|
||||
static unique_ptr<T> mInstance;
|
||||
};
|
||||
template <typename T>
|
||||
unique_ptr<T> Singletone<T>::mInstance;
|
||||
template <typename T>
|
||||
|
||||
#define DECLARE_SINGLETON(type) \
|
||||
friend class unique_ptr<type> ; \
|
||||
|
|
|
@ -21,4 +21,5 @@ using namespace std;
|
|||
}
|
||||
string itos(int x);
|
||||
|
||||
|
||||
#endif //CUTILS_UTILS_H
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
//
|
||||
// Created by 29019 on 2020/4/18.
|
||||
//
|
||||
|
||||
#include "TcpClient.h"
|
|
@ -0,0 +1,21 @@
|
|||
//
|
||||
// Created by 29019 on 2020/4/18.
|
||||
//
|
||||
|
||||
#ifndef GENERAL_TCPCLIENT_H
|
||||
#define GENERAL_TCPCLIENT_H
|
||||
|
||||
#include <iostream>
|
||||
#include <event2/bufferevent.h>
|
||||
#include <event2/buffer.h>
|
||||
#include <event2/listener.h>
|
||||
#include <event2/util.h>
|
||||
#include <event2/event.h>
|
||||
#include <event2/thread.h>
|
||||
|
||||
class TcpClient {
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif //GENERAL_TCPCLIENT_H
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu>
|
||||
* Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. The name of the author may not be used to endorse or promote products
|
||||
* derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#ifndef EVENT1_EVDNS_H_INCLUDED_
|
||||
#define EVENT1_EVDNS_H_INCLUDED_
|
||||
|
||||
/** @file evdns.h
|
||||
|
||||
A dns subsystem for Libevent.
|
||||
|
||||
The <evdns.h> header is deprecated in Libevent 2.0 and later; please
|
||||
use <event2/evdns.h> instead. Depending on what functionality you
|
||||
need, you may also want to include more of the other <event2/...>
|
||||
headers.
|
||||
*/
|
||||
|
||||
#include <event.h>
|
||||
#include <event2/dns.h>
|
||||
#include <event2/dns_compat.h>
|
||||
#include <event2/dns_struct.h>
|
||||
|
||||
#endif /* EVENT1_EVDNS_H_INCLUDED_ */
|
|
@ -0,0 +1,83 @@
|
|||
/*
|
||||
* Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu>
|
||||
* Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. The name of the author may not be used to endorse or promote products
|
||||
* derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#ifndef EVENT1_EVENT_H_INCLUDED_
|
||||
#define EVENT1_EVENT_H_INCLUDED_
|
||||
|
||||
/** @file event.h
|
||||
|
||||
A library for writing event-driven network servers.
|
||||
|
||||
The <event.h> header is deprecated in Libevent 2.0 and later; please
|
||||
use <event2/event.h> instead. Depending on what functionality you
|
||||
need, you may also want to include more of the other event2/
|
||||
headers.
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <event2/event-config.h>
|
||||
#ifdef EVENT__HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
#ifdef EVENT__HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#ifdef EVENT__HAVE_STDINT_H
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
#include <stdarg.h>
|
||||
|
||||
/* For int types. */
|
||||
#include <evutil.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
#undef WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
|
||||
#include <event2/event_struct.h>
|
||||
#include <event2/event.h>
|
||||
#include <event2/event_compat.h>
|
||||
#include <event2/buffer.h>
|
||||
#include <event2/buffer_compat.h>
|
||||
#include <event2/bufferevent.h>
|
||||
#include <event2/bufferevent_struct.h>
|
||||
#include <event2/bufferevent_compat.h>
|
||||
#include <event2/tag.h>
|
||||
#include <event2/tag_compat.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* EVENT1_EVENT_H_INCLUDED_ */
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* Copyright 2000-2007 Niels Provos <provos@citi.umich.edu>
|
||||
* Copyright 2007-2012 Niels Provos and Nick Mathewson
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. The name of the author may not be used to endorse or promote products
|
||||
* derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#ifndef EVENT1_EVHTTP_H_INCLUDED_
|
||||
#define EVENT1_EVHTTP_H_INCLUDED_
|
||||
|
||||
/** @file evhttp.h
|
||||
|
||||
An http implementation subsystem for Libevent.
|
||||
|
||||
The <evhttp.h> header is deprecated in Libevent 2.0 and later; please
|
||||
use <event2/http.h> instead. Depending on what functionality you
|
||||
need, you may also want to include more of the other <event2/...>
|
||||
headers.
|
||||
*/
|
||||
|
||||
#include <event.h>
|
||||
#include <event2/http.h>
|
||||
#include <event2/http_struct.h>
|
||||
#include <event2/http_compat.h>
|
||||
|
||||
#endif /* EVENT1_EVHTTP_H_INCLUDED_ */
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu>
|
||||
* Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. The name of the author may not be used to endorse or promote products
|
||||
* derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#ifndef EVENT1_EVRPC_H_INCLUDED_
|
||||
#define EVENT1_EVRPC_H_INCLUDED_
|
||||
|
||||
/** @file evrpc.h
|
||||
|
||||
An RPC system for Libevent.
|
||||
|
||||
The <evrpc.h> header is deprecated in Libevent 2.0 and later; please
|
||||
use <event2/rpc.h> instead. Depending on what functionality you
|
||||
need, you may also want to include more of the other <event2/...>
|
||||
headers.
|
||||
*/
|
||||
|
||||
#include <event.h>
|
||||
#include <event2/rpc.h>
|
||||
#include <event2/rpc_struct.h>
|
||||
#include <event2/rpc_compat.h>
|
||||
|
||||
#endif /* EVENT1_EVRPC_H_INCLUDED_ */
|
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. The name of the author may not be used to endorse or promote products
|
||||
* derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#ifndef EVENT1_EVUTIL_H_INCLUDED_
|
||||
#define EVENT1_EVUTIL_H_INCLUDED_
|
||||
|
||||
/** @file evutil.h
|
||||
|
||||
Utility and compatibility functions for Libevent.
|
||||
|
||||
The <evutil.h> header is deprecated in Libevent 2.0 and later; please
|
||||
use <event2/util.h> instead.
|
||||
*/
|
||||
|
||||
#include <event2/util.h>
|
||||
|
||||
#endif /* EVENT1_EVUTIL_H_INCLUDED_ */
|
|
@ -0,0 +1,46 @@
|
|||
# include/Makefile.am for libevent
|
||||
# Copyright 2000-2007 Niels Provos
|
||||
# Copyright 2007-2012 Niels Provos and Nick Mathewson
|
||||
#
|
||||
# See LICENSE for copying information.
|
||||
|
||||
include_event2dir = $(includedir)/event2
|
||||
|
||||
EVENT2_EXPORT = \
|
||||
include/event2/buffer.h \
|
||||
include/event2/buffer_compat.h \
|
||||
include/event2/bufferevent.h \
|
||||
include/event2/bufferevent_compat.h \
|
||||
include/event2/bufferevent_ssl.h \
|
||||
include/event2/bufferevent_struct.h \
|
||||
include/event2/dns.h \
|
||||
include/event2/dns_compat.h \
|
||||
include/event2/dns_struct.h \
|
||||
include/event2/event.h \
|
||||
include/event2/event_compat.h \
|
||||
include/event2/event_struct.h \
|
||||
include/event2/http.h \
|
||||
include/event2/http_compat.h \
|
||||
include/event2/http_struct.h \
|
||||
include/event2/keyvalq_struct.h \
|
||||
include/event2/listener.h \
|
||||
include/event2/rpc.h \
|
||||
include/event2/rpc_compat.h \
|
||||
include/event2/rpc_struct.h \
|
||||
include/event2/tag.h \
|
||||
include/event2/tag_compat.h \
|
||||
include/event2/thread.h \
|
||||
include/event2/util.h \
|
||||
include/event2/visibility.h
|
||||
|
||||
## Without the nobase_ prefixing, Automake would strip "include/event2/" from
|
||||
## the source header filename to derive the installed header filename.
|
||||
## With nobase_ the installed path is $(includedir)/include/event2/ev*.h.
|
||||
|
||||
if INSTALL_LIBEVENT
|
||||
include_event2_HEADERS = $(EVENT2_EXPORT)
|
||||
nodist_include_event2_HEADERS = include/event2/event-config.h
|
||||
else
|
||||
noinst_HEADERS += $(EVENT2_EXPORT)
|
||||
nodist_noinst_HEADERS = include/event2/event-config.h
|
||||
endif
|
Loading…
Reference in New Issue