├── .gitattributes ├── .gitignore ├── .vscode ├── launch.json └── settings.json ├── BoostServer ├── BoostServer.filters ├── BoostServer.user ├── BoostServer.vcxproj ├── BoostServer.vcxproj.filters ├── CMakeCache.txt ├── CMakeFiles │ ├── 3.10.2 │ │ ├── CMakeCCompiler.cmake │ │ ├── CMakeCXXCompiler.cmake │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ ├── CMakeSystem.cmake │ │ ├── CompilerIdC │ │ │ ├── CMakeCCompilerId.c │ │ │ └── a.out │ │ └── CompilerIdCXX │ │ │ ├── CMakeCXXCompilerId.cpp │ │ │ └── a.out │ ├── CMakeDirectoryInformation.cmake │ ├── CMakeOutput.log │ ├── Makefile.cmake │ ├── Makefile2 │ ├── TargetDirectories.txt │ ├── cmake.check_cache │ ├── feature_tests.bin │ ├── feature_tests.c │ ├── feature_tests.cxx │ ├── progress.marks │ └── server.dir │ │ ├── CXX.includecache │ │ ├── DependInfo.cmake │ │ ├── build.make │ │ ├── cmake_clean.cmake │ │ ├── depend.internal │ │ ├── depend.make │ │ ├── flags.make │ │ ├── link.txt │ │ └── progress.make ├── CMakeLists.txt ├── Data │ ├── config.ini │ └── emfile.txt ├── Debug │ ├── BoostServer.Build.CppClean.log │ ├── BoostServer.lastbuildstate │ ├── BoostServer.log │ ├── ConsoleApplication1.log │ ├── server.Build.CppClean.log │ ├── server.lastbuildstate │ └── vc110.pdb ├── Logic │ ├── CMakeFiles │ │ ├── CMakeDirectoryInformation.cmake │ │ ├── Logiclib.dir │ │ │ ├── CXX.includecache │ │ │ ├── DependInfo.cmake │ │ │ ├── build.make │ │ │ ├── cmake_clean.cmake │ │ │ ├── cmake_clean_target.cmake │ │ │ ├── depend.internal │ │ │ ├── depend.make │ │ │ ├── flags.make │ │ │ ├── link.txt │ │ │ └── progress.make │ │ └── progress.marks │ ├── CMakeLists.txt │ ├── HeartBeat.cpp │ ├── HeartBeat.h │ ├── LogicSystem.cpp │ ├── LogicSystem.h │ ├── Makefile │ ├── MsgDefine.h │ ├── Player.cpp │ ├── Player.h │ └── cmake_install.cmake ├── Makefile ├── NetModel │ ├── .Server.cpp.swp │ ├── Base64.cpp │ ├── Base64.h │ ├── CMakeFiles │ │ ├── CMakeDirectoryInformation.cmake │ │ ├── NetModellib.dir │ │ │ ├── CXX.includecache │ │ │ ├── DependInfo.cmake │ │ │ ├── build.make │ │ │ ├── cmake_clean.cmake │ │ │ ├── cmake_clean_target.cmake │ │ │ ├── depend.internal │ │ │ ├── depend.make │ │ │ ├── flags.make │ │ │ ├── link.txt │ │ │ └── progress.make │ │ └── progress.marks │ ├── CMakeLists.txt │ ├── Makefile │ ├── MsgHandler.h │ ├── Server.cpp │ ├── Server.h │ ├── Session.cpp │ ├── Session.h │ ├── Singleton.h │ ├── StreamNode.cpp │ ├── StreamNode.h │ ├── cmake_install.cmake │ └── emfile.txt ├── ReadMe.txt ├── cmake_install.cmake └── main.cpp ├── Debug ├── BoostServer.exe ├── BoostServer.ilk ├── BoostServer.pdb ├── ConsoleApplication1.exe ├── ConsoleApplication1.ilk └── ConsoleApplication1.pdb ├── README.md ├── ServerBoost.sdf ├── ServerBoost.sln └── ServerBoost.v11.suo /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | *.js linguist-language=cpp 4 | *.css linguist-language=cpp 5 | *.html linguist-language=cpp 6 | *.makefile linguist-language=cpp 7 | 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | ServerBoost.opensdf 3 | ConsoleApplication1/Debug/ConsoleApplication1.log 4 | ConsoleApplication1/Debug/CL.read.1.tlog 5 | ConsoleApplication1/Debug/CL.read.1.tlog 6 | ConsoleApplication1/Debug/CL.write.1.tlog 7 | *.tlog 8 | *.tlog 9 | ConsoleApplication1/Debug/CL.read.1.tlog 10 | *.obj 11 | *.idb 12 | ConsoleApplication1/Debug/CL.write.1.tlog 13 | ConsoleApplication1/Debug/CL.write.1.tlog 14 | ConsoleApplication1/Debug/ConsoleApplication1.log 15 | ConsoleApplication1/Debug/server.Build.CppClean.log 16 | ConsoleApplication1/Debug/server.lastbuildstate 17 | ConsoleApplication1/Debug/vc110.pdb 18 | Debug/server.pdb 19 | 20 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "name": "(gdb) Launch", 6 | "type": "cppdbg", 7 | "request": "launch", 8 | "program": "${workspaceRoot}/BoostServer/server", 9 | "args": [], 10 | "stopAtEntry": false, 11 | "cwd": "${workspaceRoot}/BoostServer", 12 | "environment": [], 13 | "externalConsole": true, 14 | "MIMode": "gdb", 15 | "setupCommands": [ 16 | { 17 | "description": "Enable pretty-printing for gdb", 18 | "text": "-enable-pretty-printing", 19 | "ignoreFailures": true 20 | } 21 | ] 22 | } 23 | ] 24 | } -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.associations": { 3 | "ostream": "cpp", 4 | "array": "cpp", 5 | "atomic": "cpp", 6 | "*.tcc": "cpp", 7 | "bitset": "cpp", 8 | "cctype": "cpp", 9 | "chrono": "cpp", 10 | "clocale": "cpp", 11 | "cmath": "cpp", 12 | "codecvt": "cpp", 13 | "complex": "cpp", 14 | "condition_variable": "cpp", 15 | "csignal": "cpp", 16 | "cstdarg": "cpp", 17 | "cstddef": "cpp", 18 | "cstdint": "cpp", 19 | "cstdio": "cpp", 20 | "cstdlib": "cpp", 21 | "cstring": "cpp", 22 | "ctime": "cpp", 23 | "cwchar": "cpp", 24 | "cwctype": "cpp", 25 | "deque": "cpp", 26 | "list": "cpp", 27 | "unordered_map": "cpp", 28 | "vector": "cpp", 29 | "exception": "cpp", 30 | "string_view": "cpp", 31 | "fstream": "cpp", 32 | "functional": "cpp", 33 | "future": "cpp", 34 | "initializer_list": "cpp", 35 | "iomanip": "cpp", 36 | "iosfwd": "cpp", 37 | "iostream": "cpp", 38 | "istream": "cpp", 39 | "limits": "cpp", 40 | "memory": "cpp", 41 | "mutex": "cpp", 42 | "new": "cpp", 43 | "optional": "cpp", 44 | "ratio": "cpp", 45 | "sstream": "cpp", 46 | "stdexcept": "cpp", 47 | "streambuf": "cpp", 48 | "system_error": "cpp", 49 | "thread": "cpp", 50 | "cinttypes": "cpp", 51 | "type_traits": "cpp", 52 | "tuple": "cpp", 53 | "typeindex": "cpp", 54 | "typeinfo": "cpp", 55 | "utility": "cpp", 56 | "variant": "cpp", 57 | "algorithm": "cpp", 58 | "*.ipp": "cpp" 59 | } 60 | } -------------------------------------------------------------------------------- /BoostServer/BoostServer.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {f56cbe08-e85e-4c20-a29b-d75965002551} 10 | 11 | 12 | 13 | 14 | NetModel 15 | 16 | 17 | NetModel 18 | 19 | 20 | NetModel 21 | 22 | 23 | Logic 24 | 25 | 26 | Logic 27 | 28 | 29 | Logic 30 | 31 | 32 | Logic 33 | 34 | 35 | 36 | 37 | NetModel 38 | 39 | 40 | NetModel 41 | 42 | 43 | NetModel 44 | 45 | 46 | 47 | Logic 48 | 49 | 50 | -------------------------------------------------------------------------------- /BoostServer/BoostServer.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | ..\data 5 | WindowsLocalDebugger 6 | 7 | -------------------------------------------------------------------------------- /BoostServer/BoostServer.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {1C5B029B-A9EF-41E1-8139-A0B66E9E38CE} 15 | Win32Proj 16 | ConsoleApplication1 17 | BoostServer 18 | 19 | 20 | 21 | Application 22 | true 23 | v110 24 | Unicode 25 | 26 | 27 | Application 28 | false 29 | v110 30 | true 31 | Unicode 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | true 45 | 46 | 47 | false 48 | 49 | 50 | 51 | NotUsing 52 | Level3 53 | Disabled 54 | WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) 55 | true 56 | D:\boost_1_68_0;%(AdditionalIncludeDirectories) 57 | 58 | 59 | Console 60 | true 61 | F:\boost\boost_1_53_0\bin\vc11\lib;%(AdditionalLibraryDirectories) 62 | 63 | 64 | 65 | 66 | Level3 67 | Use 68 | MaxSpeed 69 | true 70 | true 71 | WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 72 | true 73 | 74 | 75 | Console 76 | true 77 | true 78 | true 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /BoostServer/BoostServer.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | Logic 7 | 8 | 9 | NetModel 10 | 11 | 12 | NetModel 13 | 14 | 15 | NetModel 16 | 17 | 18 | Logic 19 | 20 | 21 | Logic 22 | 23 | 24 | NetModel 25 | 26 | 27 | 28 | 29 | Logic 30 | 31 | 32 | Logic 33 | 34 | 35 | NetModel 36 | 37 | 38 | NetModel 39 | 40 | 41 | NetModel 42 | 43 | 44 | Logic 45 | 46 | 47 | Logic 48 | 49 | 50 | NetModel 51 | 52 | 53 | NetModel 54 | 55 | 56 | NetModel 57 | 58 | 59 | 60 | 61 | {74c94e2b-698c-4110-a965-01b60fe26281} 62 | 63 | 64 | {ecade6ba-09bc-4fe9-bbbb-1eb33e9df66a} 65 | 66 | 67 | -------------------------------------------------------------------------------- /BoostServer/CMakeCache.txt: -------------------------------------------------------------------------------- 1 | # This is the CMakeCache file. 2 | # For build in directory: /home/secondtonone1/workspace/boostserver/BoostServer 3 | # It was generated by CMake: /usr/bin/cmake 4 | # You can edit this file to change values found and used by cmake. 5 | # If you do not want to change any of the values, simply exit the editor. 6 | # If you do want to change a value, simply edit, save, and exit the editor. 7 | # The syntax for the file is as follows: 8 | # KEY:TYPE=VALUE 9 | # KEY is the name of a variable in the cache. 10 | # TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. 11 | # VALUE is the current value for the KEY. 12 | 13 | ######################## 14 | # EXTERNAL cache entries 15 | ######################## 16 | 17 | //Path to a program. 18 | CMAKE_AR:FILEPATH=/usr/bin/ar 19 | 20 | //Choose the type of build, options are: None(CMAKE_CXX_FLAGS or 21 | // CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel. 22 | CMAKE_BUILD_TYPE:STRING= 23 | 24 | //Enable/Disable color output during build. 25 | CMAKE_COLOR_MAKEFILE:BOOL=ON 26 | 27 | //CXX compiler 28 | CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++ 29 | 30 | //A wrapper around 'ar' adding the appropriate '--plugin' option 31 | // for the GCC compiler 32 | CMAKE_CXX_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-7 33 | 34 | //A wrapper around 'ranlib' adding the appropriate '--plugin' option 35 | // for the GCC compiler 36 | CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-7 37 | 38 | //Flags used by the compiler during all build types. 39 | CMAKE_CXX_FLAGS:STRING= 40 | 41 | //Flags used by the compiler during debug builds. 42 | CMAKE_CXX_FLAGS_DEBUG:STRING=-g 43 | 44 | //Flags used by the compiler during release builds for minimum 45 | // size. 46 | CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG 47 | 48 | //Flags used by the compiler during release builds. 49 | CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG 50 | 51 | //Flags used by the compiler during release builds with debug info. 52 | CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG 53 | 54 | //C compiler 55 | CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc 56 | 57 | //A wrapper around 'ar' adding the appropriate '--plugin' option 58 | // for the GCC compiler 59 | CMAKE_C_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-7 60 | 61 | //A wrapper around 'ranlib' adding the appropriate '--plugin' option 62 | // for the GCC compiler 63 | CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-7 64 | 65 | //Flags used by the compiler during all build types. 66 | CMAKE_C_FLAGS:STRING= 67 | 68 | //Flags used by the compiler during debug builds. 69 | CMAKE_C_FLAGS_DEBUG:STRING=-g 70 | 71 | //Flags used by the compiler during release builds for minimum 72 | // size. 73 | CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG 74 | 75 | //Flags used by the compiler during release builds. 76 | CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG 77 | 78 | //Flags used by the compiler during release builds with debug info. 79 | CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG 80 | 81 | //Flags used by the linker. 82 | CMAKE_EXE_LINKER_FLAGS:STRING= 83 | 84 | //Flags used by the linker during debug builds. 85 | CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= 86 | 87 | //Flags used by the linker during release minsize builds. 88 | CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= 89 | 90 | //Flags used by the linker during release builds. 91 | CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= 92 | 93 | //Flags used by the linker during Release with Debug Info builds. 94 | CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= 95 | 96 | //Enable/Disable output of compile commands during generation. 97 | CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF 98 | 99 | //Install path prefix, prepended onto install directories. 100 | CMAKE_INSTALL_PREFIX:PATH=/usr/local 101 | 102 | //Path to a program. 103 | CMAKE_LINKER:FILEPATH=/usr/bin/ld 104 | 105 | //Path to a program. 106 | CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make 107 | 108 | //Flags used by the linker during the creation of modules. 109 | CMAKE_MODULE_LINKER_FLAGS:STRING= 110 | 111 | //Flags used by the linker during debug builds. 112 | CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= 113 | 114 | //Flags used by the linker during release minsize builds. 115 | CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= 116 | 117 | //Flags used by the linker during release builds. 118 | CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= 119 | 120 | //Flags used by the linker during Release with Debug Info builds. 121 | CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= 122 | 123 | //Path to a program. 124 | CMAKE_NM:FILEPATH=/usr/bin/nm 125 | 126 | //Path to a program. 127 | CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy 128 | 129 | //Path to a program. 130 | CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump 131 | 132 | //Value Computed by CMake 133 | CMAKE_PROJECT_NAME:STATIC=server 134 | 135 | //Path to a program. 136 | CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib 137 | 138 | //Flags used by the linker during the creation of dll's. 139 | CMAKE_SHARED_LINKER_FLAGS:STRING= 140 | 141 | //Flags used by the linker during debug builds. 142 | CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= 143 | 144 | //Flags used by the linker during release minsize builds. 145 | CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= 146 | 147 | //Flags used by the linker during release builds. 148 | CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= 149 | 150 | //Flags used by the linker during Release with Debug Info builds. 151 | CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= 152 | 153 | //If set, runtime paths are not added when installing shared libraries, 154 | // but are added when building. 155 | CMAKE_SKIP_INSTALL_RPATH:BOOL=NO 156 | 157 | //If set, runtime paths are not added when using shared libraries. 158 | CMAKE_SKIP_RPATH:BOOL=NO 159 | 160 | //Flags used by the linker during the creation of static libraries. 161 | CMAKE_STATIC_LINKER_FLAGS:STRING= 162 | 163 | //Flags used by the linker during debug builds. 164 | CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= 165 | 166 | //Flags used by the linker during release minsize builds. 167 | CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= 168 | 169 | //Flags used by the linker during release builds. 170 | CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= 171 | 172 | //Flags used by the linker during Release with Debug Info builds. 173 | CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= 174 | 175 | //Path to a program. 176 | CMAKE_STRIP:FILEPATH=/usr/bin/strip 177 | 178 | //If this value is on, makefiles will be generated without the 179 | // .SILENT directive, and all commands will be echoed to the console 180 | // during the make. This is useful for debugging only. With Visual 181 | // Studio IDE projects all commands are done without /nologo. 182 | CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE 183 | 184 | //Dependencies for target 185 | Logiclib_LIB_DEPENDS:STATIC= 186 | 187 | //Dependencies for target 188 | NetModellib_LIB_DEPENDS:STATIC= 189 | 190 | //Value Computed by CMake 191 | server_BINARY_DIR:STATIC=/home/secondtonone1/workspace/boostserver/BoostServer 192 | 193 | //Value Computed by CMake 194 | server_SOURCE_DIR:STATIC=/home/secondtonone1/workspace/boostserver/BoostServer 195 | 196 | 197 | ######################## 198 | # INTERNAL cache entries 199 | ######################## 200 | 201 | //ADVANCED property for variable: CMAKE_AR 202 | CMAKE_AR-ADVANCED:INTERNAL=1 203 | //This is the directory where this CMakeCache.txt was created 204 | CMAKE_CACHEFILE_DIR:INTERNAL=/home/secondtonone1/workspace/boostserver/BoostServer 205 | //Major version of cmake used to create the current loaded cache 206 | CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 207 | //Minor version of cmake used to create the current loaded cache 208 | CMAKE_CACHE_MINOR_VERSION:INTERNAL=10 209 | //Patch version of cmake used to create the current loaded cache 210 | CMAKE_CACHE_PATCH_VERSION:INTERNAL=2 211 | //ADVANCED property for variable: CMAKE_COLOR_MAKEFILE 212 | CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1 213 | //Path to CMake executable. 214 | CMAKE_COMMAND:INTERNAL=/usr/bin/cmake 215 | //Path to cpack program executable. 216 | CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack 217 | //Path to ctest program executable. 218 | CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest 219 | //ADVANCED property for variable: CMAKE_CXX_COMPILER 220 | CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1 221 | //ADVANCED property for variable: CMAKE_CXX_COMPILER_AR 222 | CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1 223 | //ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB 224 | CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1 225 | //ADVANCED property for variable: CMAKE_CXX_FLAGS 226 | CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1 227 | //ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG 228 | CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1 229 | //ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL 230 | CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 231 | //ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE 232 | CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1 233 | //ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO 234 | CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 235 | //ADVANCED property for variable: CMAKE_C_COMPILER 236 | CMAKE_C_COMPILER-ADVANCED:INTERNAL=1 237 | //ADVANCED property for variable: CMAKE_C_COMPILER_AR 238 | CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1 239 | //ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB 240 | CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1 241 | //ADVANCED property for variable: CMAKE_C_FLAGS 242 | CMAKE_C_FLAGS-ADVANCED:INTERNAL=1 243 | //ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG 244 | CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1 245 | //ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL 246 | CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 247 | //ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE 248 | CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1 249 | //ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO 250 | CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 251 | //Executable file format 252 | CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF 253 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS 254 | CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 255 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG 256 | CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 257 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL 258 | CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 259 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE 260 | CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 261 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO 262 | CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 263 | //ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS 264 | CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1 265 | //Name of external makefile project generator. 266 | CMAKE_EXTRA_GENERATOR:INTERNAL= 267 | //Name of generator. 268 | CMAKE_GENERATOR:INTERNAL=Unix Makefiles 269 | //Name of generator platform. 270 | CMAKE_GENERATOR_PLATFORM:INTERNAL= 271 | //Name of generator toolset. 272 | CMAKE_GENERATOR_TOOLSET:INTERNAL= 273 | //Source directory with the top level CMakeLists.txt file for this 274 | // project 275 | CMAKE_HOME_DIRECTORY:INTERNAL=/home/secondtonone1/workspace/boostserver/BoostServer 276 | //Install .so files without execute permission. 277 | CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1 278 | //ADVANCED property for variable: CMAKE_LINKER 279 | CMAKE_LINKER-ADVANCED:INTERNAL=1 280 | //ADVANCED property for variable: CMAKE_MAKE_PROGRAM 281 | CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1 282 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS 283 | CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 284 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG 285 | CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 286 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL 287 | CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 288 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE 289 | CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 290 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO 291 | CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 292 | //ADVANCED property for variable: CMAKE_NM 293 | CMAKE_NM-ADVANCED:INTERNAL=1 294 | //number of local generators 295 | CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=3 296 | //ADVANCED property for variable: CMAKE_OBJCOPY 297 | CMAKE_OBJCOPY-ADVANCED:INTERNAL=1 298 | //ADVANCED property for variable: CMAKE_OBJDUMP 299 | CMAKE_OBJDUMP-ADVANCED:INTERNAL=1 300 | //Platform information initialized 301 | CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1 302 | //ADVANCED property for variable: CMAKE_RANLIB 303 | CMAKE_RANLIB-ADVANCED:INTERNAL=1 304 | //Path to CMake installation. 305 | CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.10 306 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS 307 | CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 308 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG 309 | CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 310 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL 311 | CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 312 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE 313 | CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 314 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO 315 | CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 316 | //ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH 317 | CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 318 | //ADVANCED property for variable: CMAKE_SKIP_RPATH 319 | CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 320 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS 321 | CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 322 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG 323 | CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 324 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL 325 | CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 326 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE 327 | CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 328 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO 329 | CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 330 | //ADVANCED property for variable: CMAKE_STRIP 331 | CMAKE_STRIP-ADVANCED:INTERNAL=1 332 | //uname command 333 | CMAKE_UNAME:INTERNAL=/bin/uname 334 | //ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE 335 | CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 336 | 337 | -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/3.10.2/CMakeCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_C_COMPILER "/usr/bin/cc") 2 | set(CMAKE_C_COMPILER_ARG1 "") 3 | set(CMAKE_C_COMPILER_ID "GNU") 4 | set(CMAKE_C_COMPILER_VERSION "7.3.0") 5 | set(CMAKE_C_COMPILER_VERSION_INTERNAL "") 6 | set(CMAKE_C_COMPILER_WRAPPER "") 7 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") 8 | set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") 9 | set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") 10 | set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") 11 | set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") 12 | 13 | set(CMAKE_C_PLATFORM_ID "Linux") 14 | set(CMAKE_C_SIMULATE_ID "") 15 | set(CMAKE_C_SIMULATE_VERSION "") 16 | 17 | 18 | 19 | set(CMAKE_AR "/usr/bin/ar") 20 | set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar-7") 21 | set(CMAKE_RANLIB "/usr/bin/ranlib") 22 | set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib-7") 23 | set(CMAKE_LINKER "/usr/bin/ld") 24 | set(CMAKE_COMPILER_IS_GNUCC 1) 25 | set(CMAKE_C_COMPILER_LOADED 1) 26 | set(CMAKE_C_COMPILER_WORKS TRUE) 27 | set(CMAKE_C_ABI_COMPILED TRUE) 28 | set(CMAKE_COMPILER_IS_MINGW ) 29 | set(CMAKE_COMPILER_IS_CYGWIN ) 30 | if(CMAKE_COMPILER_IS_CYGWIN) 31 | set(CYGWIN 1) 32 | set(UNIX 1) 33 | endif() 34 | 35 | set(CMAKE_C_COMPILER_ENV_VAR "CC") 36 | 37 | if(CMAKE_COMPILER_IS_MINGW) 38 | set(MINGW 1) 39 | endif() 40 | set(CMAKE_C_COMPILER_ID_RUN 1) 41 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) 42 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) 43 | set(CMAKE_C_LINKER_PREFERENCE 10) 44 | 45 | # Save compiler ABI information. 46 | set(CMAKE_C_SIZEOF_DATA_PTR "8") 47 | set(CMAKE_C_COMPILER_ABI "ELF") 48 | set(CMAKE_C_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") 49 | 50 | if(CMAKE_C_SIZEOF_DATA_PTR) 51 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") 52 | endif() 53 | 54 | if(CMAKE_C_COMPILER_ABI) 55 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") 56 | endif() 57 | 58 | if(CMAKE_C_LIBRARY_ARCHITECTURE) 59 | set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") 60 | endif() 61 | 62 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") 63 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) 64 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") 65 | endif() 66 | 67 | 68 | 69 | 70 | 71 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s") 72 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/7;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib") 73 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 74 | -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/3.10.2/CMakeCXXCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_CXX_COMPILER "/usr/bin/c++") 2 | set(CMAKE_CXX_COMPILER_ARG1 "") 3 | set(CMAKE_CXX_COMPILER_ID "GNU") 4 | set(CMAKE_CXX_COMPILER_VERSION "7.3.0") 5 | set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "") 6 | set(CMAKE_CXX_COMPILER_WRAPPER "") 7 | set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "14") 8 | set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17") 9 | set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters") 10 | set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates") 11 | set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates") 12 | set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17") 13 | 14 | set(CMAKE_CXX_PLATFORM_ID "Linux") 15 | set(CMAKE_CXX_SIMULATE_ID "") 16 | set(CMAKE_CXX_SIMULATE_VERSION "") 17 | 18 | 19 | 20 | set(CMAKE_AR "/usr/bin/ar") 21 | set(CMAKE_CXX_COMPILER_AR "/usr/bin/gcc-ar-7") 22 | set(CMAKE_RANLIB "/usr/bin/ranlib") 23 | set(CMAKE_CXX_COMPILER_RANLIB "/usr/bin/gcc-ranlib-7") 24 | set(CMAKE_LINKER "/usr/bin/ld") 25 | set(CMAKE_COMPILER_IS_GNUCXX 1) 26 | set(CMAKE_CXX_COMPILER_LOADED 1) 27 | set(CMAKE_CXX_COMPILER_WORKS TRUE) 28 | set(CMAKE_CXX_ABI_COMPILED TRUE) 29 | set(CMAKE_COMPILER_IS_MINGW ) 30 | set(CMAKE_COMPILER_IS_CYGWIN ) 31 | if(CMAKE_COMPILER_IS_CYGWIN) 32 | set(CYGWIN 1) 33 | set(UNIX 1) 34 | endif() 35 | 36 | set(CMAKE_CXX_COMPILER_ENV_VAR "CXX") 37 | 38 | if(CMAKE_COMPILER_IS_MINGW) 39 | set(MINGW 1) 40 | endif() 41 | set(CMAKE_CXX_COMPILER_ID_RUN 1) 42 | set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC) 43 | set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;mm;CPP) 44 | set(CMAKE_CXX_LINKER_PREFERENCE 30) 45 | set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1) 46 | 47 | # Save compiler ABI information. 48 | set(CMAKE_CXX_SIZEOF_DATA_PTR "8") 49 | set(CMAKE_CXX_COMPILER_ABI "ELF") 50 | set(CMAKE_CXX_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") 51 | 52 | if(CMAKE_CXX_SIZEOF_DATA_PTR) 53 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}") 54 | endif() 55 | 56 | if(CMAKE_CXX_COMPILER_ABI) 57 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}") 58 | endif() 59 | 60 | if(CMAKE_CXX_LIBRARY_ARCHITECTURE) 61 | set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") 62 | endif() 63 | 64 | set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "") 65 | if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX) 66 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}") 67 | endif() 68 | 69 | 70 | 71 | 72 | 73 | set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;gcc_s;gcc;c;gcc_s;gcc") 74 | set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/7;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib") 75 | set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 76 | -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/3.10.2/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/secondtonone1/boostserver/236a2dfe40eba0e429f29fb25578c114fa6f648a/BoostServer/CMakeFiles/3.10.2/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/3.10.2/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/secondtonone1/boostserver/236a2dfe40eba0e429f29fb25578c114fa6f648a/BoostServer/CMakeFiles/3.10.2/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/3.10.2/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Linux-4.15.0-29-generic") 2 | set(CMAKE_HOST_SYSTEM_NAME "Linux") 3 | set(CMAKE_HOST_SYSTEM_VERSION "4.15.0-29-generic") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") 5 | 6 | 7 | 8 | set(CMAKE_SYSTEM "Linux-4.15.0-29-generic") 9 | set(CMAKE_SYSTEM_NAME "Linux") 10 | set(CMAKE_SYSTEM_VERSION "4.15.0-29-generic") 11 | set(CMAKE_SYSTEM_PROCESSOR "x86_64") 12 | 13 | set(CMAKE_CROSSCOMPILING "FALSE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/3.10.2/CompilerIdC/CMakeCCompilerId.c: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | # error "A C++ compiler has been selected for C." 3 | #endif 4 | 5 | #if defined(__18CXX) 6 | # define ID_VOID_MAIN 7 | #endif 8 | #if defined(__CLASSIC_C__) 9 | /* cv-qualifiers did not exist in K&R C */ 10 | # define const 11 | # define volatile 12 | #endif 13 | 14 | 15 | /* Version number components: V=Version, R=Revision, P=Patch 16 | Version date components: YYYY=Year, MM=Month, DD=Day */ 17 | 18 | #if defined(__INTEL_COMPILER) || defined(__ICC) 19 | # define COMPILER_ID "Intel" 20 | # if defined(_MSC_VER) 21 | # define SIMULATE_ID "MSVC" 22 | # endif 23 | /* __INTEL_COMPILER = VRP */ 24 | # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) 25 | # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) 26 | # if defined(__INTEL_COMPILER_UPDATE) 27 | # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) 28 | # else 29 | # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) 30 | # endif 31 | # if defined(__INTEL_COMPILER_BUILD_DATE) 32 | /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ 33 | # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) 34 | # endif 35 | # if defined(_MSC_VER) 36 | /* _MSC_VER = VVRR */ 37 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 38 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 39 | # endif 40 | 41 | #elif defined(__PATHCC__) 42 | # define COMPILER_ID "PathScale" 43 | # define COMPILER_VERSION_MAJOR DEC(__PATHCC__) 44 | # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) 45 | # if defined(__PATHCC_PATCHLEVEL__) 46 | # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) 47 | # endif 48 | 49 | #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) 50 | # define COMPILER_ID "Embarcadero" 51 | # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) 52 | # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) 53 | # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) 54 | 55 | #elif defined(__BORLANDC__) 56 | # define COMPILER_ID "Borland" 57 | /* __BORLANDC__ = 0xVRR */ 58 | # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) 59 | # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) 60 | 61 | #elif defined(__WATCOMC__) && __WATCOMC__ < 1200 62 | # define COMPILER_ID "Watcom" 63 | /* __WATCOMC__ = VVRR */ 64 | # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) 65 | # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) 66 | # if (__WATCOMC__ % 10) > 0 67 | # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) 68 | # endif 69 | 70 | #elif defined(__WATCOMC__) 71 | # define COMPILER_ID "OpenWatcom" 72 | /* __WATCOMC__ = VVRP + 1100 */ 73 | # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) 74 | # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) 75 | # if (__WATCOMC__ % 10) > 0 76 | # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) 77 | # endif 78 | 79 | #elif defined(__SUNPRO_C) 80 | # define COMPILER_ID "SunPro" 81 | # if __SUNPRO_C >= 0x5100 82 | /* __SUNPRO_C = 0xVRRP */ 83 | # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12) 84 | # define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF) 85 | # define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) 86 | # else 87 | /* __SUNPRO_CC = 0xVRP */ 88 | # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8) 89 | # define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF) 90 | # define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) 91 | # endif 92 | 93 | #elif defined(__HP_cc) 94 | # define COMPILER_ID "HP" 95 | /* __HP_cc = VVRRPP */ 96 | # define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000) 97 | # define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100) 98 | # define COMPILER_VERSION_PATCH DEC(__HP_cc % 100) 99 | 100 | #elif defined(__DECC) 101 | # define COMPILER_ID "Compaq" 102 | /* __DECC_VER = VVRRTPPPP */ 103 | # define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000) 104 | # define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100) 105 | # define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000) 106 | 107 | #elif defined(__IBMC__) && defined(__COMPILER_VER__) 108 | # define COMPILER_ID "zOS" 109 | /* __IBMC__ = VRP */ 110 | # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) 111 | # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) 112 | # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) 113 | 114 | #elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800 115 | # define COMPILER_ID "XL" 116 | /* __IBMC__ = VRP */ 117 | # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) 118 | # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) 119 | # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) 120 | 121 | #elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800 122 | # define COMPILER_ID "VisualAge" 123 | /* __IBMC__ = VRP */ 124 | # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) 125 | # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) 126 | # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) 127 | 128 | #elif defined(__PGI) 129 | # define COMPILER_ID "PGI" 130 | # define COMPILER_VERSION_MAJOR DEC(__PGIC__) 131 | # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) 132 | # if defined(__PGIC_PATCHLEVEL__) 133 | # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) 134 | # endif 135 | 136 | #elif defined(_CRAYC) 137 | # define COMPILER_ID "Cray" 138 | # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) 139 | # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) 140 | 141 | #elif defined(__TI_COMPILER_VERSION__) 142 | # define COMPILER_ID "TI" 143 | /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ 144 | # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) 145 | # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) 146 | # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) 147 | 148 | #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) 149 | # define COMPILER_ID "Fujitsu" 150 | 151 | #elif defined(__TINYC__) 152 | # define COMPILER_ID "TinyCC" 153 | 154 | #elif defined(__BCC__) 155 | # define COMPILER_ID "Bruce" 156 | 157 | #elif defined(__SCO_VERSION__) 158 | # define COMPILER_ID "SCO" 159 | 160 | #elif defined(__clang__) && defined(__apple_build_version__) 161 | # define COMPILER_ID "AppleClang" 162 | # if defined(_MSC_VER) 163 | # define SIMULATE_ID "MSVC" 164 | # endif 165 | # define COMPILER_VERSION_MAJOR DEC(__clang_major__) 166 | # define COMPILER_VERSION_MINOR DEC(__clang_minor__) 167 | # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) 168 | # if defined(_MSC_VER) 169 | /* _MSC_VER = VVRR */ 170 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 171 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 172 | # endif 173 | # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) 174 | 175 | #elif defined(__clang__) 176 | # define COMPILER_ID "Clang" 177 | # if defined(_MSC_VER) 178 | # define SIMULATE_ID "MSVC" 179 | # endif 180 | # define COMPILER_VERSION_MAJOR DEC(__clang_major__) 181 | # define COMPILER_VERSION_MINOR DEC(__clang_minor__) 182 | # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) 183 | # if defined(_MSC_VER) 184 | /* _MSC_VER = VVRR */ 185 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 186 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 187 | # endif 188 | 189 | #elif defined(__GNUC__) 190 | # define COMPILER_ID "GNU" 191 | # define COMPILER_VERSION_MAJOR DEC(__GNUC__) 192 | # if defined(__GNUC_MINOR__) 193 | # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) 194 | # endif 195 | # if defined(__GNUC_PATCHLEVEL__) 196 | # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) 197 | # endif 198 | 199 | #elif defined(_MSC_VER) 200 | # define COMPILER_ID "MSVC" 201 | /* _MSC_VER = VVRR */ 202 | # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) 203 | # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) 204 | # if defined(_MSC_FULL_VER) 205 | # if _MSC_VER >= 1400 206 | /* _MSC_FULL_VER = VVRRPPPPP */ 207 | # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) 208 | # else 209 | /* _MSC_FULL_VER = VVRRPPPP */ 210 | # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) 211 | # endif 212 | # endif 213 | # if defined(_MSC_BUILD) 214 | # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) 215 | # endif 216 | 217 | #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) 218 | # define COMPILER_ID "ADSP" 219 | #if defined(__VISUALDSPVERSION__) 220 | /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ 221 | # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) 222 | # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) 223 | # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) 224 | #endif 225 | 226 | #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) 227 | # define COMPILER_ID "IAR" 228 | # if defined(__VER__) 229 | # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) 230 | # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) 231 | # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) 232 | # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) 233 | # endif 234 | 235 | #elif defined(__ARMCC_VERSION) 236 | # define COMPILER_ID "ARMCC" 237 | #if __ARMCC_VERSION >= 1000000 238 | /* __ARMCC_VERSION = VRRPPPP */ 239 | # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) 240 | # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) 241 | # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) 242 | #else 243 | /* __ARMCC_VERSION = VRPPPP */ 244 | # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) 245 | # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) 246 | # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) 247 | #endif 248 | 249 | 250 | #elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC) 251 | # define COMPILER_ID "SDCC" 252 | # if defined(__SDCC_VERSION_MAJOR) 253 | # define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR) 254 | # define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR) 255 | # define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH) 256 | # else 257 | /* SDCC = VRP */ 258 | # define COMPILER_VERSION_MAJOR DEC(SDCC/100) 259 | # define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10) 260 | # define COMPILER_VERSION_PATCH DEC(SDCC % 10) 261 | # endif 262 | 263 | #elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) 264 | # define COMPILER_ID "MIPSpro" 265 | # if defined(_SGI_COMPILER_VERSION) 266 | /* _SGI_COMPILER_VERSION = VRP */ 267 | # define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100) 268 | # define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10) 269 | # define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10) 270 | # else 271 | /* _COMPILER_VERSION = VRP */ 272 | # define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100) 273 | # define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10) 274 | # define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10) 275 | # endif 276 | 277 | 278 | /* These compilers are either not known or too old to define an 279 | identification macro. Try to identify the platform and guess that 280 | it is the native compiler. */ 281 | #elif defined(__sgi) 282 | # define COMPILER_ID "MIPSpro" 283 | 284 | #elif defined(__hpux) || defined(__hpua) 285 | # define COMPILER_ID "HP" 286 | 287 | #else /* unknown compiler */ 288 | # define COMPILER_ID "" 289 | #endif 290 | 291 | /* Construct the string literal in pieces to prevent the source from 292 | getting matched. Store it in a pointer rather than an array 293 | because some compilers will just produce instructions to fill the 294 | array rather than assigning a pointer to a static array. */ 295 | char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; 296 | #ifdef SIMULATE_ID 297 | char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; 298 | #endif 299 | 300 | #ifdef __QNXNTO__ 301 | char const* qnxnto = "INFO" ":" "qnxnto[]"; 302 | #endif 303 | 304 | #if defined(__CRAYXE) || defined(__CRAYXC) 305 | char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; 306 | #endif 307 | 308 | #define STRINGIFY_HELPER(X) #X 309 | #define STRINGIFY(X) STRINGIFY_HELPER(X) 310 | 311 | /* Identify known platforms by name. */ 312 | #if defined(__linux) || defined(__linux__) || defined(linux) 313 | # define PLATFORM_ID "Linux" 314 | 315 | #elif defined(__CYGWIN__) 316 | # define PLATFORM_ID "Cygwin" 317 | 318 | #elif defined(__MINGW32__) 319 | # define PLATFORM_ID "MinGW" 320 | 321 | #elif defined(__APPLE__) 322 | # define PLATFORM_ID "Darwin" 323 | 324 | #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) 325 | # define PLATFORM_ID "Windows" 326 | 327 | #elif defined(__FreeBSD__) || defined(__FreeBSD) 328 | # define PLATFORM_ID "FreeBSD" 329 | 330 | #elif defined(__NetBSD__) || defined(__NetBSD) 331 | # define PLATFORM_ID "NetBSD" 332 | 333 | #elif defined(__OpenBSD__) || defined(__OPENBSD) 334 | # define PLATFORM_ID "OpenBSD" 335 | 336 | #elif defined(__sun) || defined(sun) 337 | # define PLATFORM_ID "SunOS" 338 | 339 | #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) 340 | # define PLATFORM_ID "AIX" 341 | 342 | #elif defined(__sgi) || defined(__sgi__) || defined(_SGI) 343 | # define PLATFORM_ID "IRIX" 344 | 345 | #elif defined(__hpux) || defined(__hpux__) 346 | # define PLATFORM_ID "HP-UX" 347 | 348 | #elif defined(__HAIKU__) 349 | # define PLATFORM_ID "Haiku" 350 | 351 | #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) 352 | # define PLATFORM_ID "BeOS" 353 | 354 | #elif defined(__QNX__) || defined(__QNXNTO__) 355 | # define PLATFORM_ID "QNX" 356 | 357 | #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) 358 | # define PLATFORM_ID "Tru64" 359 | 360 | #elif defined(__riscos) || defined(__riscos__) 361 | # define PLATFORM_ID "RISCos" 362 | 363 | #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) 364 | # define PLATFORM_ID "SINIX" 365 | 366 | #elif defined(__UNIX_SV__) 367 | # define PLATFORM_ID "UNIX_SV" 368 | 369 | #elif defined(__bsdos__) 370 | # define PLATFORM_ID "BSDOS" 371 | 372 | #elif defined(_MPRAS) || defined(MPRAS) 373 | # define PLATFORM_ID "MP-RAS" 374 | 375 | #elif defined(__osf) || defined(__osf__) 376 | # define PLATFORM_ID "OSF1" 377 | 378 | #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) 379 | # define PLATFORM_ID "SCO_SV" 380 | 381 | #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) 382 | # define PLATFORM_ID "ULTRIX" 383 | 384 | #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) 385 | # define PLATFORM_ID "Xenix" 386 | 387 | #elif defined(__WATCOMC__) 388 | # if defined(__LINUX__) 389 | # define PLATFORM_ID "Linux" 390 | 391 | # elif defined(__DOS__) 392 | # define PLATFORM_ID "DOS" 393 | 394 | # elif defined(__OS2__) 395 | # define PLATFORM_ID "OS2" 396 | 397 | # elif defined(__WINDOWS__) 398 | # define PLATFORM_ID "Windows3x" 399 | 400 | # else /* unknown platform */ 401 | # define PLATFORM_ID 402 | # endif 403 | 404 | #else /* unknown platform */ 405 | # define PLATFORM_ID 406 | 407 | #endif 408 | 409 | /* For windows compilers MSVC and Intel we can determine 410 | the architecture of the compiler being used. This is because 411 | the compilers do not have flags that can change the architecture, 412 | but rather depend on which compiler is being used 413 | */ 414 | #if defined(_WIN32) && defined(_MSC_VER) 415 | # if defined(_M_IA64) 416 | # define ARCHITECTURE_ID "IA64" 417 | 418 | # elif defined(_M_X64) || defined(_M_AMD64) 419 | # define ARCHITECTURE_ID "x64" 420 | 421 | # elif defined(_M_IX86) 422 | # define ARCHITECTURE_ID "X86" 423 | 424 | # elif defined(_M_ARM64) 425 | # define ARCHITECTURE_ID "ARM64" 426 | 427 | # elif defined(_M_ARM) 428 | # if _M_ARM == 4 429 | # define ARCHITECTURE_ID "ARMV4I" 430 | # elif _M_ARM == 5 431 | # define ARCHITECTURE_ID "ARMV5I" 432 | # else 433 | # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) 434 | # endif 435 | 436 | # elif defined(_M_MIPS) 437 | # define ARCHITECTURE_ID "MIPS" 438 | 439 | # elif defined(_M_SH) 440 | # define ARCHITECTURE_ID "SHx" 441 | 442 | # else /* unknown architecture */ 443 | # define ARCHITECTURE_ID "" 444 | # endif 445 | 446 | #elif defined(__WATCOMC__) 447 | # if defined(_M_I86) 448 | # define ARCHITECTURE_ID "I86" 449 | 450 | # elif defined(_M_IX86) 451 | # define ARCHITECTURE_ID "X86" 452 | 453 | # else /* unknown architecture */ 454 | # define ARCHITECTURE_ID "" 455 | # endif 456 | 457 | #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) 458 | # if defined(__ICCARM__) 459 | # define ARCHITECTURE_ID "ARM" 460 | 461 | # elif defined(__ICCAVR__) 462 | # define ARCHITECTURE_ID "AVR" 463 | 464 | # else /* unknown architecture */ 465 | # define ARCHITECTURE_ID "" 466 | # endif 467 | #else 468 | # define ARCHITECTURE_ID 469 | #endif 470 | 471 | /* Convert integer to decimal digit literals. */ 472 | #define DEC(n) \ 473 | ('0' + (((n) / 10000000)%10)), \ 474 | ('0' + (((n) / 1000000)%10)), \ 475 | ('0' + (((n) / 100000)%10)), \ 476 | ('0' + (((n) / 10000)%10)), \ 477 | ('0' + (((n) / 1000)%10)), \ 478 | ('0' + (((n) / 100)%10)), \ 479 | ('0' + (((n) / 10)%10)), \ 480 | ('0' + ((n) % 10)) 481 | 482 | /* Convert integer to hex digit literals. */ 483 | #define HEX(n) \ 484 | ('0' + ((n)>>28 & 0xF)), \ 485 | ('0' + ((n)>>24 & 0xF)), \ 486 | ('0' + ((n)>>20 & 0xF)), \ 487 | ('0' + ((n)>>16 & 0xF)), \ 488 | ('0' + ((n)>>12 & 0xF)), \ 489 | ('0' + ((n)>>8 & 0xF)), \ 490 | ('0' + ((n)>>4 & 0xF)), \ 491 | ('0' + ((n) & 0xF)) 492 | 493 | /* Construct a string literal encoding the version number components. */ 494 | #ifdef COMPILER_VERSION_MAJOR 495 | char const info_version[] = { 496 | 'I', 'N', 'F', 'O', ':', 497 | 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', 498 | COMPILER_VERSION_MAJOR, 499 | # ifdef COMPILER_VERSION_MINOR 500 | '.', COMPILER_VERSION_MINOR, 501 | # ifdef COMPILER_VERSION_PATCH 502 | '.', COMPILER_VERSION_PATCH, 503 | # ifdef COMPILER_VERSION_TWEAK 504 | '.', COMPILER_VERSION_TWEAK, 505 | # endif 506 | # endif 507 | # endif 508 | ']','\0'}; 509 | #endif 510 | 511 | /* Construct a string literal encoding the internal version number. */ 512 | #ifdef COMPILER_VERSION_INTERNAL 513 | char const info_version_internal[] = { 514 | 'I', 'N', 'F', 'O', ':', 515 | 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', 516 | 'i','n','t','e','r','n','a','l','[', 517 | COMPILER_VERSION_INTERNAL,']','\0'}; 518 | #endif 519 | 520 | /* Construct a string literal encoding the version number components. */ 521 | #ifdef SIMULATE_VERSION_MAJOR 522 | char const info_simulate_version[] = { 523 | 'I', 'N', 'F', 'O', ':', 524 | 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', 525 | SIMULATE_VERSION_MAJOR, 526 | # ifdef SIMULATE_VERSION_MINOR 527 | '.', SIMULATE_VERSION_MINOR, 528 | # ifdef SIMULATE_VERSION_PATCH 529 | '.', SIMULATE_VERSION_PATCH, 530 | # ifdef SIMULATE_VERSION_TWEAK 531 | '.', SIMULATE_VERSION_TWEAK, 532 | # endif 533 | # endif 534 | # endif 535 | ']','\0'}; 536 | #endif 537 | 538 | /* Construct the string literal in pieces to prevent the source from 539 | getting matched. Store it in a pointer rather than an array 540 | because some compilers will just produce instructions to fill the 541 | array rather than assigning a pointer to a static array. */ 542 | char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; 543 | char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; 544 | 545 | 546 | 547 | 548 | #if !defined(__STDC__) 549 | # if defined(_MSC_VER) && !defined(__clang__) 550 | # define C_DIALECT "90" 551 | # else 552 | # define C_DIALECT 553 | # endif 554 | #elif __STDC_VERSION__ >= 201000L 555 | # define C_DIALECT "11" 556 | #elif __STDC_VERSION__ >= 199901L 557 | # define C_DIALECT "99" 558 | #else 559 | # define C_DIALECT "90" 560 | #endif 561 | const char* info_language_dialect_default = 562 | "INFO" ":" "dialect_default[" C_DIALECT "]"; 563 | 564 | /*--------------------------------------------------------------------------*/ 565 | 566 | #ifdef ID_VOID_MAIN 567 | void main() {} 568 | #else 569 | # if defined(__CLASSIC_C__) 570 | int main(argc, argv) int argc; char *argv[]; 571 | # else 572 | int main(int argc, char* argv[]) 573 | # endif 574 | { 575 | int require = 0; 576 | require += info_compiler[argc]; 577 | require += info_platform[argc]; 578 | require += info_arch[argc]; 579 | #ifdef COMPILER_VERSION_MAJOR 580 | require += info_version[argc]; 581 | #endif 582 | #ifdef COMPILER_VERSION_INTERNAL 583 | require += info_version_internal[argc]; 584 | #endif 585 | #ifdef SIMULATE_ID 586 | require += info_simulate[argc]; 587 | #endif 588 | #ifdef SIMULATE_VERSION_MAJOR 589 | require += info_simulate_version[argc]; 590 | #endif 591 | #if defined(__CRAYXE) || defined(__CRAYXC) 592 | require += info_cray[argc]; 593 | #endif 594 | require += info_language_dialect_default[argc]; 595 | (void)argv; 596 | return require; 597 | } 598 | #endif 599 | -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/3.10.2/CompilerIdC/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/secondtonone1/boostserver/236a2dfe40eba0e429f29fb25578c114fa6f648a/BoostServer/CMakeFiles/3.10.2/CompilerIdC/a.out -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp: -------------------------------------------------------------------------------- 1 | /* This source file must have a .cpp extension so that all C++ compilers 2 | recognize the extension without flags. Borland does not know .cxx for 3 | example. */ 4 | #ifndef __cplusplus 5 | # error "A C compiler has been selected for C++." 6 | #endif 7 | 8 | 9 | /* Version number components: V=Version, R=Revision, P=Patch 10 | Version date components: YYYY=Year, MM=Month, DD=Day */ 11 | 12 | #if defined(__COMO__) 13 | # define COMPILER_ID "Comeau" 14 | /* __COMO_VERSION__ = VRR */ 15 | # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100) 16 | # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100) 17 | 18 | #elif defined(__INTEL_COMPILER) || defined(__ICC) 19 | # define COMPILER_ID "Intel" 20 | # if defined(_MSC_VER) 21 | # define SIMULATE_ID "MSVC" 22 | # endif 23 | /* __INTEL_COMPILER = VRP */ 24 | # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) 25 | # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) 26 | # if defined(__INTEL_COMPILER_UPDATE) 27 | # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) 28 | # else 29 | # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) 30 | # endif 31 | # if defined(__INTEL_COMPILER_BUILD_DATE) 32 | /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ 33 | # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) 34 | # endif 35 | # if defined(_MSC_VER) 36 | /* _MSC_VER = VVRR */ 37 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 38 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 39 | # endif 40 | 41 | #elif defined(__PATHCC__) 42 | # define COMPILER_ID "PathScale" 43 | # define COMPILER_VERSION_MAJOR DEC(__PATHCC__) 44 | # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) 45 | # if defined(__PATHCC_PATCHLEVEL__) 46 | # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) 47 | # endif 48 | 49 | #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) 50 | # define COMPILER_ID "Embarcadero" 51 | # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) 52 | # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) 53 | # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) 54 | 55 | #elif defined(__BORLANDC__) 56 | # define COMPILER_ID "Borland" 57 | /* __BORLANDC__ = 0xVRR */ 58 | # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) 59 | # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) 60 | 61 | #elif defined(__WATCOMC__) && __WATCOMC__ < 1200 62 | # define COMPILER_ID "Watcom" 63 | /* __WATCOMC__ = VVRR */ 64 | # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) 65 | # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) 66 | # if (__WATCOMC__ % 10) > 0 67 | # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) 68 | # endif 69 | 70 | #elif defined(__WATCOMC__) 71 | # define COMPILER_ID "OpenWatcom" 72 | /* __WATCOMC__ = VVRP + 1100 */ 73 | # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) 74 | # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) 75 | # if (__WATCOMC__ % 10) > 0 76 | # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) 77 | # endif 78 | 79 | #elif defined(__SUNPRO_CC) 80 | # define COMPILER_ID "SunPro" 81 | # if __SUNPRO_CC >= 0x5100 82 | /* __SUNPRO_CC = 0xVRRP */ 83 | # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12) 84 | # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF) 85 | # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) 86 | # else 87 | /* __SUNPRO_CC = 0xVRP */ 88 | # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8) 89 | # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF) 90 | # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) 91 | # endif 92 | 93 | #elif defined(__HP_aCC) 94 | # define COMPILER_ID "HP" 95 | /* __HP_aCC = VVRRPP */ 96 | # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000) 97 | # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100) 98 | # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100) 99 | 100 | #elif defined(__DECCXX) 101 | # define COMPILER_ID "Compaq" 102 | /* __DECCXX_VER = VVRRTPPPP */ 103 | # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000) 104 | # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100) 105 | # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000) 106 | 107 | #elif defined(__IBMCPP__) && defined(__COMPILER_VER__) 108 | # define COMPILER_ID "zOS" 109 | /* __IBMCPP__ = VRP */ 110 | # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) 111 | # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) 112 | # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) 113 | 114 | #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800 115 | # define COMPILER_ID "XL" 116 | /* __IBMCPP__ = VRP */ 117 | # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) 118 | # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) 119 | # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) 120 | 121 | #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800 122 | # define COMPILER_ID "VisualAge" 123 | /* __IBMCPP__ = VRP */ 124 | # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) 125 | # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) 126 | # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) 127 | 128 | #elif defined(__PGI) 129 | # define COMPILER_ID "PGI" 130 | # define COMPILER_VERSION_MAJOR DEC(__PGIC__) 131 | # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) 132 | # if defined(__PGIC_PATCHLEVEL__) 133 | # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) 134 | # endif 135 | 136 | #elif defined(_CRAYC) 137 | # define COMPILER_ID "Cray" 138 | # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) 139 | # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) 140 | 141 | #elif defined(__TI_COMPILER_VERSION__) 142 | # define COMPILER_ID "TI" 143 | /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ 144 | # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) 145 | # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) 146 | # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) 147 | 148 | #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) 149 | # define COMPILER_ID "Fujitsu" 150 | 151 | #elif defined(__SCO_VERSION__) 152 | # define COMPILER_ID "SCO" 153 | 154 | #elif defined(__clang__) && defined(__apple_build_version__) 155 | # define COMPILER_ID "AppleClang" 156 | # if defined(_MSC_VER) 157 | # define SIMULATE_ID "MSVC" 158 | # endif 159 | # define COMPILER_VERSION_MAJOR DEC(__clang_major__) 160 | # define COMPILER_VERSION_MINOR DEC(__clang_minor__) 161 | # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) 162 | # if defined(_MSC_VER) 163 | /* _MSC_VER = VVRR */ 164 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 165 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 166 | # endif 167 | # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) 168 | 169 | #elif defined(__clang__) 170 | # define COMPILER_ID "Clang" 171 | # if defined(_MSC_VER) 172 | # define SIMULATE_ID "MSVC" 173 | # endif 174 | # define COMPILER_VERSION_MAJOR DEC(__clang_major__) 175 | # define COMPILER_VERSION_MINOR DEC(__clang_minor__) 176 | # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) 177 | # if defined(_MSC_VER) 178 | /* _MSC_VER = VVRR */ 179 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 180 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 181 | # endif 182 | 183 | #elif defined(__GNUC__) || defined(__GNUG__) 184 | # define COMPILER_ID "GNU" 185 | # if defined(__GNUC__) 186 | # define COMPILER_VERSION_MAJOR DEC(__GNUC__) 187 | # else 188 | # define COMPILER_VERSION_MAJOR DEC(__GNUG__) 189 | # endif 190 | # if defined(__GNUC_MINOR__) 191 | # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) 192 | # endif 193 | # if defined(__GNUC_PATCHLEVEL__) 194 | # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) 195 | # endif 196 | 197 | #elif defined(_MSC_VER) 198 | # define COMPILER_ID "MSVC" 199 | /* _MSC_VER = VVRR */ 200 | # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) 201 | # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) 202 | # if defined(_MSC_FULL_VER) 203 | # if _MSC_VER >= 1400 204 | /* _MSC_FULL_VER = VVRRPPPPP */ 205 | # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) 206 | # else 207 | /* _MSC_FULL_VER = VVRRPPPP */ 208 | # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) 209 | # endif 210 | # endif 211 | # if defined(_MSC_BUILD) 212 | # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) 213 | # endif 214 | 215 | #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) 216 | # define COMPILER_ID "ADSP" 217 | #if defined(__VISUALDSPVERSION__) 218 | /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ 219 | # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) 220 | # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) 221 | # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) 222 | #endif 223 | 224 | #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) 225 | # define COMPILER_ID "IAR" 226 | # if defined(__VER__) 227 | # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) 228 | # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) 229 | # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) 230 | # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) 231 | # endif 232 | 233 | #elif defined(__ARMCC_VERSION) 234 | # define COMPILER_ID "ARMCC" 235 | #if __ARMCC_VERSION >= 1000000 236 | /* __ARMCC_VERSION = VRRPPPP */ 237 | # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) 238 | # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) 239 | # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) 240 | #else 241 | /* __ARMCC_VERSION = VRPPPP */ 242 | # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) 243 | # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) 244 | # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) 245 | #endif 246 | 247 | 248 | #elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) 249 | # define COMPILER_ID "MIPSpro" 250 | # if defined(_SGI_COMPILER_VERSION) 251 | /* _SGI_COMPILER_VERSION = VRP */ 252 | # define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100) 253 | # define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10) 254 | # define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10) 255 | # else 256 | /* _COMPILER_VERSION = VRP */ 257 | # define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100) 258 | # define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10) 259 | # define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10) 260 | # endif 261 | 262 | 263 | /* These compilers are either not known or too old to define an 264 | identification macro. Try to identify the platform and guess that 265 | it is the native compiler. */ 266 | #elif defined(__sgi) 267 | # define COMPILER_ID "MIPSpro" 268 | 269 | #elif defined(__hpux) || defined(__hpua) 270 | # define COMPILER_ID "HP" 271 | 272 | #else /* unknown compiler */ 273 | # define COMPILER_ID "" 274 | #endif 275 | 276 | /* Construct the string literal in pieces to prevent the source from 277 | getting matched. Store it in a pointer rather than an array 278 | because some compilers will just produce instructions to fill the 279 | array rather than assigning a pointer to a static array. */ 280 | char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; 281 | #ifdef SIMULATE_ID 282 | char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; 283 | #endif 284 | 285 | #ifdef __QNXNTO__ 286 | char const* qnxnto = "INFO" ":" "qnxnto[]"; 287 | #endif 288 | 289 | #if defined(__CRAYXE) || defined(__CRAYXC) 290 | char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; 291 | #endif 292 | 293 | #define STRINGIFY_HELPER(X) #X 294 | #define STRINGIFY(X) STRINGIFY_HELPER(X) 295 | 296 | /* Identify known platforms by name. */ 297 | #if defined(__linux) || defined(__linux__) || defined(linux) 298 | # define PLATFORM_ID "Linux" 299 | 300 | #elif defined(__CYGWIN__) 301 | # define PLATFORM_ID "Cygwin" 302 | 303 | #elif defined(__MINGW32__) 304 | # define PLATFORM_ID "MinGW" 305 | 306 | #elif defined(__APPLE__) 307 | # define PLATFORM_ID "Darwin" 308 | 309 | #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) 310 | # define PLATFORM_ID "Windows" 311 | 312 | #elif defined(__FreeBSD__) || defined(__FreeBSD) 313 | # define PLATFORM_ID "FreeBSD" 314 | 315 | #elif defined(__NetBSD__) || defined(__NetBSD) 316 | # define PLATFORM_ID "NetBSD" 317 | 318 | #elif defined(__OpenBSD__) || defined(__OPENBSD) 319 | # define PLATFORM_ID "OpenBSD" 320 | 321 | #elif defined(__sun) || defined(sun) 322 | # define PLATFORM_ID "SunOS" 323 | 324 | #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) 325 | # define PLATFORM_ID "AIX" 326 | 327 | #elif defined(__sgi) || defined(__sgi__) || defined(_SGI) 328 | # define PLATFORM_ID "IRIX" 329 | 330 | #elif defined(__hpux) || defined(__hpux__) 331 | # define PLATFORM_ID "HP-UX" 332 | 333 | #elif defined(__HAIKU__) 334 | # define PLATFORM_ID "Haiku" 335 | 336 | #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) 337 | # define PLATFORM_ID "BeOS" 338 | 339 | #elif defined(__QNX__) || defined(__QNXNTO__) 340 | # define PLATFORM_ID "QNX" 341 | 342 | #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) 343 | # define PLATFORM_ID "Tru64" 344 | 345 | #elif defined(__riscos) || defined(__riscos__) 346 | # define PLATFORM_ID "RISCos" 347 | 348 | #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) 349 | # define PLATFORM_ID "SINIX" 350 | 351 | #elif defined(__UNIX_SV__) 352 | # define PLATFORM_ID "UNIX_SV" 353 | 354 | #elif defined(__bsdos__) 355 | # define PLATFORM_ID "BSDOS" 356 | 357 | #elif defined(_MPRAS) || defined(MPRAS) 358 | # define PLATFORM_ID "MP-RAS" 359 | 360 | #elif defined(__osf) || defined(__osf__) 361 | # define PLATFORM_ID "OSF1" 362 | 363 | #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) 364 | # define PLATFORM_ID "SCO_SV" 365 | 366 | #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) 367 | # define PLATFORM_ID "ULTRIX" 368 | 369 | #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) 370 | # define PLATFORM_ID "Xenix" 371 | 372 | #elif defined(__WATCOMC__) 373 | # if defined(__LINUX__) 374 | # define PLATFORM_ID "Linux" 375 | 376 | # elif defined(__DOS__) 377 | # define PLATFORM_ID "DOS" 378 | 379 | # elif defined(__OS2__) 380 | # define PLATFORM_ID "OS2" 381 | 382 | # elif defined(__WINDOWS__) 383 | # define PLATFORM_ID "Windows3x" 384 | 385 | # else /* unknown platform */ 386 | # define PLATFORM_ID 387 | # endif 388 | 389 | #else /* unknown platform */ 390 | # define PLATFORM_ID 391 | 392 | #endif 393 | 394 | /* For windows compilers MSVC and Intel we can determine 395 | the architecture of the compiler being used. This is because 396 | the compilers do not have flags that can change the architecture, 397 | but rather depend on which compiler is being used 398 | */ 399 | #if defined(_WIN32) && defined(_MSC_VER) 400 | # if defined(_M_IA64) 401 | # define ARCHITECTURE_ID "IA64" 402 | 403 | # elif defined(_M_X64) || defined(_M_AMD64) 404 | # define ARCHITECTURE_ID "x64" 405 | 406 | # elif defined(_M_IX86) 407 | # define ARCHITECTURE_ID "X86" 408 | 409 | # elif defined(_M_ARM64) 410 | # define ARCHITECTURE_ID "ARM64" 411 | 412 | # elif defined(_M_ARM) 413 | # if _M_ARM == 4 414 | # define ARCHITECTURE_ID "ARMV4I" 415 | # elif _M_ARM == 5 416 | # define ARCHITECTURE_ID "ARMV5I" 417 | # else 418 | # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) 419 | # endif 420 | 421 | # elif defined(_M_MIPS) 422 | # define ARCHITECTURE_ID "MIPS" 423 | 424 | # elif defined(_M_SH) 425 | # define ARCHITECTURE_ID "SHx" 426 | 427 | # else /* unknown architecture */ 428 | # define ARCHITECTURE_ID "" 429 | # endif 430 | 431 | #elif defined(__WATCOMC__) 432 | # if defined(_M_I86) 433 | # define ARCHITECTURE_ID "I86" 434 | 435 | # elif defined(_M_IX86) 436 | # define ARCHITECTURE_ID "X86" 437 | 438 | # else /* unknown architecture */ 439 | # define ARCHITECTURE_ID "" 440 | # endif 441 | 442 | #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) 443 | # if defined(__ICCARM__) 444 | # define ARCHITECTURE_ID "ARM" 445 | 446 | # elif defined(__ICCAVR__) 447 | # define ARCHITECTURE_ID "AVR" 448 | 449 | # else /* unknown architecture */ 450 | # define ARCHITECTURE_ID "" 451 | # endif 452 | #else 453 | # define ARCHITECTURE_ID 454 | #endif 455 | 456 | /* Convert integer to decimal digit literals. */ 457 | #define DEC(n) \ 458 | ('0' + (((n) / 10000000)%10)), \ 459 | ('0' + (((n) / 1000000)%10)), \ 460 | ('0' + (((n) / 100000)%10)), \ 461 | ('0' + (((n) / 10000)%10)), \ 462 | ('0' + (((n) / 1000)%10)), \ 463 | ('0' + (((n) / 100)%10)), \ 464 | ('0' + (((n) / 10)%10)), \ 465 | ('0' + ((n) % 10)) 466 | 467 | /* Convert integer to hex digit literals. */ 468 | #define HEX(n) \ 469 | ('0' + ((n)>>28 & 0xF)), \ 470 | ('0' + ((n)>>24 & 0xF)), \ 471 | ('0' + ((n)>>20 & 0xF)), \ 472 | ('0' + ((n)>>16 & 0xF)), \ 473 | ('0' + ((n)>>12 & 0xF)), \ 474 | ('0' + ((n)>>8 & 0xF)), \ 475 | ('0' + ((n)>>4 & 0xF)), \ 476 | ('0' + ((n) & 0xF)) 477 | 478 | /* Construct a string literal encoding the version number components. */ 479 | #ifdef COMPILER_VERSION_MAJOR 480 | char const info_version[] = { 481 | 'I', 'N', 'F', 'O', ':', 482 | 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', 483 | COMPILER_VERSION_MAJOR, 484 | # ifdef COMPILER_VERSION_MINOR 485 | '.', COMPILER_VERSION_MINOR, 486 | # ifdef COMPILER_VERSION_PATCH 487 | '.', COMPILER_VERSION_PATCH, 488 | # ifdef COMPILER_VERSION_TWEAK 489 | '.', COMPILER_VERSION_TWEAK, 490 | # endif 491 | # endif 492 | # endif 493 | ']','\0'}; 494 | #endif 495 | 496 | /* Construct a string literal encoding the internal version number. */ 497 | #ifdef COMPILER_VERSION_INTERNAL 498 | char const info_version_internal[] = { 499 | 'I', 'N', 'F', 'O', ':', 500 | 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', 501 | 'i','n','t','e','r','n','a','l','[', 502 | COMPILER_VERSION_INTERNAL,']','\0'}; 503 | #endif 504 | 505 | /* Construct a string literal encoding the version number components. */ 506 | #ifdef SIMULATE_VERSION_MAJOR 507 | char const info_simulate_version[] = { 508 | 'I', 'N', 'F', 'O', ':', 509 | 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', 510 | SIMULATE_VERSION_MAJOR, 511 | # ifdef SIMULATE_VERSION_MINOR 512 | '.', SIMULATE_VERSION_MINOR, 513 | # ifdef SIMULATE_VERSION_PATCH 514 | '.', SIMULATE_VERSION_PATCH, 515 | # ifdef SIMULATE_VERSION_TWEAK 516 | '.', SIMULATE_VERSION_TWEAK, 517 | # endif 518 | # endif 519 | # endif 520 | ']','\0'}; 521 | #endif 522 | 523 | /* Construct the string literal in pieces to prevent the source from 524 | getting matched. Store it in a pointer rather than an array 525 | because some compilers will just produce instructions to fill the 526 | array rather than assigning a pointer to a static array. */ 527 | char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; 528 | char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; 529 | 530 | 531 | 532 | 533 | #if defined(_MSC_VER) && defined(_MSVC_LANG) 534 | #define CXX_STD _MSVC_LANG 535 | #else 536 | #define CXX_STD __cplusplus 537 | #endif 538 | 539 | const char* info_language_dialect_default = "INFO" ":" "dialect_default[" 540 | #if CXX_STD > 201402L 541 | "17" 542 | #elif CXX_STD >= 201402L 543 | "14" 544 | #elif CXX_STD >= 201103L 545 | "11" 546 | #else 547 | "98" 548 | #endif 549 | "]"; 550 | 551 | /*--------------------------------------------------------------------------*/ 552 | 553 | int main(int argc, char* argv[]) 554 | { 555 | int require = 0; 556 | require += info_compiler[argc]; 557 | require += info_platform[argc]; 558 | #ifdef COMPILER_VERSION_MAJOR 559 | require += info_version[argc]; 560 | #endif 561 | #ifdef COMPILER_VERSION_INTERNAL 562 | require += info_version_internal[argc]; 563 | #endif 564 | #ifdef SIMULATE_ID 565 | require += info_simulate[argc]; 566 | #endif 567 | #ifdef SIMULATE_VERSION_MAJOR 568 | require += info_simulate_version[argc]; 569 | #endif 570 | #if defined(__CRAYXE) || defined(__CRAYXC) 571 | require += info_cray[argc]; 572 | #endif 573 | require += info_language_dialect_default[argc]; 574 | (void)argv; 575 | return require; 576 | } 577 | -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/3.10.2/CompilerIdCXX/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/secondtonone1/boostserver/236a2dfe40eba0e429f29fb25578c114fa6f648a/BoostServer/CMakeFiles/3.10.2/CompilerIdCXX/a.out -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/CMakeDirectoryInformation.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 3 | 4 | # Relative path conversion top directories. 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/secondtonone1/workspace/boostserver/BoostServer") 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/secondtonone1/workspace/boostserver/BoostServer") 7 | 8 | # Force unix paths in dependencies. 9 | set(CMAKE_FORCE_UNIX_PATHS 1) 10 | 11 | 12 | # The C and CXX include file regular expressions for this directory. 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) 17 | -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/Makefile.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 3 | 4 | # The generator used is: 5 | set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") 6 | 7 | # The top level Makefile was generated from the following files: 8 | set(CMAKE_MAKEFILE_DEPENDS 9 | "CMakeCache.txt" 10 | "CMakeFiles/3.10.2/CMakeCCompiler.cmake" 11 | "CMakeFiles/3.10.2/CMakeCXXCompiler.cmake" 12 | "CMakeFiles/3.10.2/CMakeSystem.cmake" 13 | "CMakeLists.txt" 14 | "Logic/CMakeLists.txt" 15 | "NetModel/CMakeLists.txt" 16 | "/usr/share/cmake-3.10/Modules/CMakeCInformation.cmake" 17 | "/usr/share/cmake-3.10/Modules/CMakeCXXInformation.cmake" 18 | "/usr/share/cmake-3.10/Modules/CMakeCommonLanguageInclude.cmake" 19 | "/usr/share/cmake-3.10/Modules/CMakeGenericSystem.cmake" 20 | "/usr/share/cmake-3.10/Modules/CMakeLanguageInformation.cmake" 21 | "/usr/share/cmake-3.10/Modules/CMakeSystemSpecificInformation.cmake" 22 | "/usr/share/cmake-3.10/Modules/CMakeSystemSpecificInitialize.cmake" 23 | "/usr/share/cmake-3.10/Modules/Compiler/CMakeCommonCompilerMacros.cmake" 24 | "/usr/share/cmake-3.10/Modules/Compiler/GNU-C.cmake" 25 | "/usr/share/cmake-3.10/Modules/Compiler/GNU-CXX.cmake" 26 | "/usr/share/cmake-3.10/Modules/Compiler/GNU.cmake" 27 | "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU-C.cmake" 28 | "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU-CXX.cmake" 29 | "/usr/share/cmake-3.10/Modules/Platform/Linux-GNU.cmake" 30 | "/usr/share/cmake-3.10/Modules/Platform/Linux.cmake" 31 | "/usr/share/cmake-3.10/Modules/Platform/UnixPaths.cmake" 32 | ) 33 | 34 | # The corresponding makefile is: 35 | set(CMAKE_MAKEFILE_OUTPUTS 36 | "Makefile" 37 | "CMakeFiles/cmake.check_cache" 38 | ) 39 | 40 | # Byproducts of CMake generate step: 41 | set(CMAKE_MAKEFILE_PRODUCTS 42 | "CMakeFiles/CMakeDirectoryInformation.cmake" 43 | "NetModel/CMakeFiles/CMakeDirectoryInformation.cmake" 44 | "Logic/CMakeFiles/CMakeDirectoryInformation.cmake" 45 | ) 46 | 47 | # Dependency information for all targets: 48 | set(CMAKE_DEPEND_INFO_FILES 49 | "CMakeFiles/server.dir/DependInfo.cmake" 50 | "NetModel/CMakeFiles/NetModellib.dir/DependInfo.cmake" 51 | "Logic/CMakeFiles/Logiclib.dir/DependInfo.cmake" 52 | ) 53 | -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/Makefile2: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 3 | 4 | # Default target executed when no arguments are given to make. 5 | default_target: all 6 | 7 | .PHONY : default_target 8 | 9 | # The main recursive all target 10 | all: 11 | 12 | .PHONY : all 13 | 14 | # The main recursive preinstall target 15 | preinstall: 16 | 17 | .PHONY : preinstall 18 | 19 | #============================================================================= 20 | # Special targets provided by cmake. 21 | 22 | # Disable implicit rules so canonical targets will work. 23 | .SUFFIXES: 24 | 25 | 26 | # Remove some rules from gmake that .SUFFIXES does not remove. 27 | SUFFIXES = 28 | 29 | .SUFFIXES: .hpux_make_needs_suffix_list 30 | 31 | 32 | # Suppress display of executed commands. 33 | $(VERBOSE).SILENT: 34 | 35 | 36 | # A target that is always out of date. 37 | cmake_force: 38 | 39 | .PHONY : cmake_force 40 | 41 | #============================================================================= 42 | # Set environment variables for the build. 43 | 44 | # The shell in which to execute make rules. 45 | SHELL = /bin/sh 46 | 47 | # The CMake executable. 48 | CMAKE_COMMAND = /usr/bin/cmake 49 | 50 | # The command to remove a file. 51 | RM = /usr/bin/cmake -E remove -f 52 | 53 | # Escaping for special characters. 54 | EQUALS = = 55 | 56 | # The top-level source directory on which CMake was run. 57 | CMAKE_SOURCE_DIR = /home/secondtonone1/workspace/boostserver/BoostServer 58 | 59 | # The top-level build directory on which CMake was run. 60 | CMAKE_BINARY_DIR = /home/secondtonone1/workspace/boostserver/BoostServer 61 | 62 | #============================================================================= 63 | # Target rules for target CMakeFiles/server.dir 64 | 65 | # All Build rule for target. 66 | CMakeFiles/server.dir/all: NetModel/CMakeFiles/NetModellib.dir/all 67 | CMakeFiles/server.dir/all: Logic/CMakeFiles/Logiclib.dir/all 68 | $(MAKE) -f CMakeFiles/server.dir/build.make CMakeFiles/server.dir/depend 69 | $(MAKE) -f CMakeFiles/server.dir/build.make CMakeFiles/server.dir/build 70 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles --progress-num=10,11 "Built target server" 71 | .PHONY : CMakeFiles/server.dir/all 72 | 73 | # Include target in all. 74 | all: CMakeFiles/server.dir/all 75 | 76 | .PHONY : all 77 | 78 | # Build rule for subdir invocation for target. 79 | CMakeFiles/server.dir/rule: cmake_check_build_system 80 | $(CMAKE_COMMAND) -E cmake_progress_start /home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles 11 81 | $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/server.dir/all 82 | $(CMAKE_COMMAND) -E cmake_progress_start /home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles 0 83 | .PHONY : CMakeFiles/server.dir/rule 84 | 85 | # Convenience name for target. 86 | server: CMakeFiles/server.dir/rule 87 | 88 | .PHONY : server 89 | 90 | # clean rule for target. 91 | CMakeFiles/server.dir/clean: 92 | $(MAKE) -f CMakeFiles/server.dir/build.make CMakeFiles/server.dir/clean 93 | .PHONY : CMakeFiles/server.dir/clean 94 | 95 | # clean rule for target. 96 | clean: CMakeFiles/server.dir/clean 97 | 98 | .PHONY : clean 99 | 100 | #============================================================================= 101 | # Directory level rules for directory NetModel 102 | 103 | # Convenience name for "all" pass in the directory. 104 | NetModel/all: NetModel/CMakeFiles/NetModellib.dir/all 105 | 106 | .PHONY : NetModel/all 107 | 108 | # Convenience name for "clean" pass in the directory. 109 | NetModel/clean: NetModel/CMakeFiles/NetModellib.dir/clean 110 | 111 | .PHONY : NetModel/clean 112 | 113 | # Convenience name for "preinstall" pass in the directory. 114 | NetModel/preinstall: 115 | 116 | .PHONY : NetModel/preinstall 117 | 118 | #============================================================================= 119 | # Target rules for target NetModel/CMakeFiles/NetModellib.dir 120 | 121 | # All Build rule for target. 122 | NetModel/CMakeFiles/NetModellib.dir/all: 123 | $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/depend 124 | $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/build 125 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles --progress-num=5,6,7,8,9 "Built target NetModellib" 126 | .PHONY : NetModel/CMakeFiles/NetModellib.dir/all 127 | 128 | # Include target in all. 129 | all: NetModel/CMakeFiles/NetModellib.dir/all 130 | 131 | .PHONY : all 132 | 133 | # Build rule for subdir invocation for target. 134 | NetModel/CMakeFiles/NetModellib.dir/rule: cmake_check_build_system 135 | $(CMAKE_COMMAND) -E cmake_progress_start /home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles 5 136 | $(MAKE) -f CMakeFiles/Makefile2 NetModel/CMakeFiles/NetModellib.dir/all 137 | $(CMAKE_COMMAND) -E cmake_progress_start /home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles 0 138 | .PHONY : NetModel/CMakeFiles/NetModellib.dir/rule 139 | 140 | # Convenience name for target. 141 | NetModellib: NetModel/CMakeFiles/NetModellib.dir/rule 142 | 143 | .PHONY : NetModellib 144 | 145 | # clean rule for target. 146 | NetModel/CMakeFiles/NetModellib.dir/clean: 147 | $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/clean 148 | .PHONY : NetModel/CMakeFiles/NetModellib.dir/clean 149 | 150 | # clean rule for target. 151 | clean: NetModel/CMakeFiles/NetModellib.dir/clean 152 | 153 | .PHONY : clean 154 | 155 | #============================================================================= 156 | # Directory level rules for directory Logic 157 | 158 | # Convenience name for "all" pass in the directory. 159 | Logic/all: Logic/CMakeFiles/Logiclib.dir/all 160 | 161 | .PHONY : Logic/all 162 | 163 | # Convenience name for "clean" pass in the directory. 164 | Logic/clean: Logic/CMakeFiles/Logiclib.dir/clean 165 | 166 | .PHONY : Logic/clean 167 | 168 | # Convenience name for "preinstall" pass in the directory. 169 | Logic/preinstall: 170 | 171 | .PHONY : Logic/preinstall 172 | 173 | #============================================================================= 174 | # Target rules for target Logic/CMakeFiles/Logiclib.dir 175 | 176 | # All Build rule for target. 177 | Logic/CMakeFiles/Logiclib.dir/all: 178 | $(MAKE) -f Logic/CMakeFiles/Logiclib.dir/build.make Logic/CMakeFiles/Logiclib.dir/depend 179 | $(MAKE) -f Logic/CMakeFiles/Logiclib.dir/build.make Logic/CMakeFiles/Logiclib.dir/build 180 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles --progress-num=1,2,3,4 "Built target Logiclib" 181 | .PHONY : Logic/CMakeFiles/Logiclib.dir/all 182 | 183 | # Include target in all. 184 | all: Logic/CMakeFiles/Logiclib.dir/all 185 | 186 | .PHONY : all 187 | 188 | # Build rule for subdir invocation for target. 189 | Logic/CMakeFiles/Logiclib.dir/rule: cmake_check_build_system 190 | $(CMAKE_COMMAND) -E cmake_progress_start /home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles 4 191 | $(MAKE) -f CMakeFiles/Makefile2 Logic/CMakeFiles/Logiclib.dir/all 192 | $(CMAKE_COMMAND) -E cmake_progress_start /home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles 0 193 | .PHONY : Logic/CMakeFiles/Logiclib.dir/rule 194 | 195 | # Convenience name for target. 196 | Logiclib: Logic/CMakeFiles/Logiclib.dir/rule 197 | 198 | .PHONY : Logiclib 199 | 200 | # clean rule for target. 201 | Logic/CMakeFiles/Logiclib.dir/clean: 202 | $(MAKE) -f Logic/CMakeFiles/Logiclib.dir/build.make Logic/CMakeFiles/Logiclib.dir/clean 203 | .PHONY : Logic/CMakeFiles/Logiclib.dir/clean 204 | 205 | # clean rule for target. 206 | clean: Logic/CMakeFiles/Logiclib.dir/clean 207 | 208 | .PHONY : clean 209 | 210 | #============================================================================= 211 | # Special targets to cleanup operation of make. 212 | 213 | # Special rule to run CMake to check the build system integrity. 214 | # No rule that depends on this can have commands that come from listfiles 215 | # because they might be regenerated. 216 | cmake_check_build_system: 217 | $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 218 | .PHONY : cmake_check_build_system 219 | 220 | -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | /home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles/rebuild_cache.dir 2 | /home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles/server.dir 3 | /home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles/edit_cache.dir 4 | /home/secondtonone1/workspace/boostserver/BoostServer/NetModel/CMakeFiles/rebuild_cache.dir 5 | /home/secondtonone1/workspace/boostserver/BoostServer/NetModel/CMakeFiles/NetModellib.dir 6 | /home/secondtonone1/workspace/boostserver/BoostServer/NetModel/CMakeFiles/edit_cache.dir 7 | /home/secondtonone1/workspace/boostserver/BoostServer/Logic/CMakeFiles/rebuild_cache.dir 8 | /home/secondtonone1/workspace/boostserver/BoostServer/Logic/CMakeFiles/Logiclib.dir 9 | /home/secondtonone1/workspace/boostserver/BoostServer/Logic/CMakeFiles/edit_cache.dir 10 | -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/feature_tests.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/secondtonone1/boostserver/236a2dfe40eba0e429f29fb25578c114fa6f648a/BoostServer/CMakeFiles/feature_tests.bin -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/feature_tests.c: -------------------------------------------------------------------------------- 1 | 2 | const char features[] = {"\n" 3 | "C_FEATURE:" 4 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 5 | "1" 6 | #else 7 | "0" 8 | #endif 9 | "c_function_prototypes\n" 10 | "C_FEATURE:" 11 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 12 | "1" 13 | #else 14 | "0" 15 | #endif 16 | "c_restrict\n" 17 | "C_FEATURE:" 18 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201000L 19 | "1" 20 | #else 21 | "0" 22 | #endif 23 | "c_static_assert\n" 24 | "C_FEATURE:" 25 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 26 | "1" 27 | #else 28 | "0" 29 | #endif 30 | "c_variadic_macros\n" 31 | 32 | }; 33 | 34 | int main(int argc, char** argv) { (void)argv; return features[argc]; } 35 | -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/feature_tests.cxx: -------------------------------------------------------------------------------- 1 | 2 | const char features[] = {"\n" 3 | "CXX_FEATURE:" 4 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L 5 | "1" 6 | #else 7 | "0" 8 | #endif 9 | "cxx_aggregate_default_initializers\n" 10 | "CXX_FEATURE:" 11 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 12 | "1" 13 | #else 14 | "0" 15 | #endif 16 | "cxx_alias_templates\n" 17 | "CXX_FEATURE:" 18 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 19 | "1" 20 | #else 21 | "0" 22 | #endif 23 | "cxx_alignas\n" 24 | "CXX_FEATURE:" 25 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 26 | "1" 27 | #else 28 | "0" 29 | #endif 30 | "cxx_alignof\n" 31 | "CXX_FEATURE:" 32 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 33 | "1" 34 | #else 35 | "0" 36 | #endif 37 | "cxx_attributes\n" 38 | "CXX_FEATURE:" 39 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 40 | "1" 41 | #else 42 | "0" 43 | #endif 44 | "cxx_attribute_deprecated\n" 45 | "CXX_FEATURE:" 46 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 47 | "1" 48 | #else 49 | "0" 50 | #endif 51 | "cxx_auto_type\n" 52 | "CXX_FEATURE:" 53 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 54 | "1" 55 | #else 56 | "0" 57 | #endif 58 | "cxx_binary_literals\n" 59 | "CXX_FEATURE:" 60 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 61 | "1" 62 | #else 63 | "0" 64 | #endif 65 | "cxx_constexpr\n" 66 | "CXX_FEATURE:" 67 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 68 | "1" 69 | #else 70 | "0" 71 | #endif 72 | "cxx_contextual_conversions\n" 73 | "CXX_FEATURE:" 74 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 75 | "1" 76 | #else 77 | "0" 78 | #endif 79 | "cxx_decltype\n" 80 | "CXX_FEATURE:" 81 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 82 | "1" 83 | #else 84 | "0" 85 | #endif 86 | "cxx_decltype_auto\n" 87 | "CXX_FEATURE:" 88 | #if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L 89 | "1" 90 | #else 91 | "0" 92 | #endif 93 | "cxx_decltype_incomplete_return_types\n" 94 | "CXX_FEATURE:" 95 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 96 | "1" 97 | #else 98 | "0" 99 | #endif 100 | "cxx_default_function_template_args\n" 101 | "CXX_FEATURE:" 102 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 103 | "1" 104 | #else 105 | "0" 106 | #endif 107 | "cxx_defaulted_functions\n" 108 | "CXX_FEATURE:" 109 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 110 | "1" 111 | #else 112 | "0" 113 | #endif 114 | "cxx_defaulted_move_initializers\n" 115 | "CXX_FEATURE:" 116 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 117 | "1" 118 | #else 119 | "0" 120 | #endif 121 | "cxx_delegating_constructors\n" 122 | "CXX_FEATURE:" 123 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 124 | "1" 125 | #else 126 | "0" 127 | #endif 128 | "cxx_deleted_functions\n" 129 | "CXX_FEATURE:" 130 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 131 | "1" 132 | #else 133 | "0" 134 | #endif 135 | "cxx_digit_separators\n" 136 | "CXX_FEATURE:" 137 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 138 | "1" 139 | #else 140 | "0" 141 | #endif 142 | "cxx_enum_forward_declarations\n" 143 | "CXX_FEATURE:" 144 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 145 | "1" 146 | #else 147 | "0" 148 | #endif 149 | "cxx_explicit_conversions\n" 150 | "CXX_FEATURE:" 151 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 152 | "1" 153 | #else 154 | "0" 155 | #endif 156 | "cxx_extended_friend_declarations\n" 157 | "CXX_FEATURE:" 158 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 159 | "1" 160 | #else 161 | "0" 162 | #endif 163 | "cxx_extern_templates\n" 164 | "CXX_FEATURE:" 165 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 166 | "1" 167 | #else 168 | "0" 169 | #endif 170 | "cxx_final\n" 171 | "CXX_FEATURE:" 172 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 173 | "1" 174 | #else 175 | "0" 176 | #endif 177 | "cxx_func_identifier\n" 178 | "CXX_FEATURE:" 179 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 180 | "1" 181 | #else 182 | "0" 183 | #endif 184 | "cxx_generalized_initializers\n" 185 | "CXX_FEATURE:" 186 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 187 | "1" 188 | #else 189 | "0" 190 | #endif 191 | "cxx_generic_lambdas\n" 192 | "CXX_FEATURE:" 193 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 194 | "1" 195 | #else 196 | "0" 197 | #endif 198 | "cxx_inheriting_constructors\n" 199 | "CXX_FEATURE:" 200 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 201 | "1" 202 | #else 203 | "0" 204 | #endif 205 | "cxx_inline_namespaces\n" 206 | "CXX_FEATURE:" 207 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 208 | "1" 209 | #else 210 | "0" 211 | #endif 212 | "cxx_lambdas\n" 213 | "CXX_FEATURE:" 214 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 215 | "1" 216 | #else 217 | "0" 218 | #endif 219 | "cxx_lambda_init_captures\n" 220 | "CXX_FEATURE:" 221 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 222 | "1" 223 | #else 224 | "0" 225 | #endif 226 | "cxx_local_type_template_args\n" 227 | "CXX_FEATURE:" 228 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 229 | "1" 230 | #else 231 | "0" 232 | #endif 233 | "cxx_long_long_type\n" 234 | "CXX_FEATURE:" 235 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 236 | "1" 237 | #else 238 | "0" 239 | #endif 240 | "cxx_noexcept\n" 241 | "CXX_FEATURE:" 242 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 243 | "1" 244 | #else 245 | "0" 246 | #endif 247 | "cxx_nonstatic_member_init\n" 248 | "CXX_FEATURE:" 249 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 250 | "1" 251 | #else 252 | "0" 253 | #endif 254 | "cxx_nullptr\n" 255 | "CXX_FEATURE:" 256 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 257 | "1" 258 | #else 259 | "0" 260 | #endif 261 | "cxx_override\n" 262 | "CXX_FEATURE:" 263 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 264 | "1" 265 | #else 266 | "0" 267 | #endif 268 | "cxx_range_for\n" 269 | "CXX_FEATURE:" 270 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 271 | "1" 272 | #else 273 | "0" 274 | #endif 275 | "cxx_raw_string_literals\n" 276 | "CXX_FEATURE:" 277 | #if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L 278 | "1" 279 | #else 280 | "0" 281 | #endif 282 | "cxx_reference_qualified_functions\n" 283 | "CXX_FEATURE:" 284 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L 285 | "1" 286 | #else 287 | "0" 288 | #endif 289 | "cxx_relaxed_constexpr\n" 290 | "CXX_FEATURE:" 291 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 292 | "1" 293 | #else 294 | "0" 295 | #endif 296 | "cxx_return_type_deduction\n" 297 | "CXX_FEATURE:" 298 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 299 | "1" 300 | #else 301 | "0" 302 | #endif 303 | "cxx_right_angle_brackets\n" 304 | "CXX_FEATURE:" 305 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 306 | "1" 307 | #else 308 | "0" 309 | #endif 310 | "cxx_rvalue_references\n" 311 | "CXX_FEATURE:" 312 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 313 | "1" 314 | #else 315 | "0" 316 | #endif 317 | "cxx_sizeof_member\n" 318 | "CXX_FEATURE:" 319 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 320 | "1" 321 | #else 322 | "0" 323 | #endif 324 | "cxx_static_assert\n" 325 | "CXX_FEATURE:" 326 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 327 | "1" 328 | #else 329 | "0" 330 | #endif 331 | "cxx_strong_enums\n" 332 | "CXX_FEATURE:" 333 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && __cplusplus 334 | "1" 335 | #else 336 | "0" 337 | #endif 338 | "cxx_template_template_parameters\n" 339 | "CXX_FEATURE:" 340 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 341 | "1" 342 | #else 343 | "0" 344 | #endif 345 | "cxx_thread_local\n" 346 | "CXX_FEATURE:" 347 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 348 | "1" 349 | #else 350 | "0" 351 | #endif 352 | "cxx_trailing_return_types\n" 353 | "CXX_FEATURE:" 354 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 355 | "1" 356 | #else 357 | "0" 358 | #endif 359 | "cxx_unicode_literals\n" 360 | "CXX_FEATURE:" 361 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 362 | "1" 363 | #else 364 | "0" 365 | #endif 366 | "cxx_uniform_initialization\n" 367 | "CXX_FEATURE:" 368 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 369 | "1" 370 | #else 371 | "0" 372 | #endif 373 | "cxx_unrestricted_unions\n" 374 | "CXX_FEATURE:" 375 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 376 | "1" 377 | #else 378 | "0" 379 | #endif 380 | "cxx_user_literals\n" 381 | "CXX_FEATURE:" 382 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L 383 | "1" 384 | #else 385 | "0" 386 | #endif 387 | "cxx_variable_templates\n" 388 | "CXX_FEATURE:" 389 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 390 | "1" 391 | #else 392 | "0" 393 | #endif 394 | "cxx_variadic_macros\n" 395 | "CXX_FEATURE:" 396 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 397 | "1" 398 | #else 399 | "0" 400 | #endif 401 | "cxx_variadic_templates\n" 402 | 403 | }; 404 | 405 | int main(int argc, char** argv) { (void)argv; return features[argc]; } 406 | -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 11 2 | -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/server.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "CXX" 4 | ) 5 | # The set of files for implicit dependencies of each language: 6 | set(CMAKE_DEPENDS_CHECK_CXX 7 | "/home/secondtonone1/workspace/boostserver/BoostServer/main.cpp" "/home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles/server.dir/main.cpp.o" 8 | ) 9 | set(CMAKE_CXX_COMPILER_ID "GNU") 10 | 11 | # The include file search paths: 12 | set(CMAKE_CXX_TARGET_INCLUDE_PATH 13 | "/usr/local/include" 14 | ) 15 | 16 | # Targets to which this target links. 17 | set(CMAKE_TARGET_LINKED_INFO_FILES 18 | "/home/secondtonone1/workspace/boostserver/BoostServer/NetModel/CMakeFiles/NetModellib.dir/DependInfo.cmake" 19 | "/home/secondtonone1/workspace/boostserver/BoostServer/Logic/CMakeFiles/Logiclib.dir/DependInfo.cmake" 20 | ) 21 | 22 | # Fortran module output directory. 23 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 24 | -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/server.dir/build.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 3 | 4 | # Delete rule output on recipe failure. 5 | .DELETE_ON_ERROR: 6 | 7 | 8 | #============================================================================= 9 | # Special targets provided by cmake. 10 | 11 | # Disable implicit rules so canonical targets will work. 12 | .SUFFIXES: 13 | 14 | 15 | # Remove some rules from gmake that .SUFFIXES does not remove. 16 | SUFFIXES = 17 | 18 | .SUFFIXES: .hpux_make_needs_suffix_list 19 | 20 | 21 | # Suppress display of executed commands. 22 | $(VERBOSE).SILENT: 23 | 24 | 25 | # A target that is always out of date. 26 | cmake_force: 27 | 28 | .PHONY : cmake_force 29 | 30 | #============================================================================= 31 | # Set environment variables for the build. 32 | 33 | # The shell in which to execute make rules. 34 | SHELL = /bin/sh 35 | 36 | # The CMake executable. 37 | CMAKE_COMMAND = /usr/bin/cmake 38 | 39 | # The command to remove a file. 40 | RM = /usr/bin/cmake -E remove -f 41 | 42 | # Escaping for special characters. 43 | EQUALS = = 44 | 45 | # The top-level source directory on which CMake was run. 46 | CMAKE_SOURCE_DIR = /home/secondtonone1/workspace/boostserver/BoostServer 47 | 48 | # The top-level build directory on which CMake was run. 49 | CMAKE_BINARY_DIR = /home/secondtonone1/workspace/boostserver/BoostServer 50 | 51 | # Include any dependencies generated for this target. 52 | include CMakeFiles/server.dir/depend.make 53 | 54 | # Include the progress variables for this target. 55 | include CMakeFiles/server.dir/progress.make 56 | 57 | # Include the compile flags for this target's objects. 58 | include CMakeFiles/server.dir/flags.make 59 | 60 | CMakeFiles/server.dir/main.cpp.o: CMakeFiles/server.dir/flags.make 61 | CMakeFiles/server.dir/main.cpp.o: main.cpp 62 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object CMakeFiles/server.dir/main.cpp.o" 63 | /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/server.dir/main.cpp.o -c /home/secondtonone1/workspace/boostserver/BoostServer/main.cpp 64 | 65 | CMakeFiles/server.dir/main.cpp.i: cmake_force 66 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/server.dir/main.cpp.i" 67 | /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/secondtonone1/workspace/boostserver/BoostServer/main.cpp > CMakeFiles/server.dir/main.cpp.i 68 | 69 | CMakeFiles/server.dir/main.cpp.s: cmake_force 70 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/server.dir/main.cpp.s" 71 | /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/secondtonone1/workspace/boostserver/BoostServer/main.cpp -o CMakeFiles/server.dir/main.cpp.s 72 | 73 | CMakeFiles/server.dir/main.cpp.o.requires: 74 | 75 | .PHONY : CMakeFiles/server.dir/main.cpp.o.requires 76 | 77 | CMakeFiles/server.dir/main.cpp.o.provides: CMakeFiles/server.dir/main.cpp.o.requires 78 | $(MAKE) -f CMakeFiles/server.dir/build.make CMakeFiles/server.dir/main.cpp.o.provides.build 79 | .PHONY : CMakeFiles/server.dir/main.cpp.o.provides 80 | 81 | CMakeFiles/server.dir/main.cpp.o.provides.build: CMakeFiles/server.dir/main.cpp.o 82 | 83 | 84 | # Object files for target server 85 | server_OBJECTS = \ 86 | "CMakeFiles/server.dir/main.cpp.o" 87 | 88 | # External object files for target server 89 | server_EXTERNAL_OBJECTS = 90 | 91 | server: CMakeFiles/server.dir/main.cpp.o 92 | server: CMakeFiles/server.dir/build.make 93 | server: NetModel/libNetModellib.a 94 | server: Logic/libLogiclib.a 95 | server: CMakeFiles/server.dir/link.txt 96 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking CXX executable server" 97 | $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/server.dir/link.txt --verbose=$(VERBOSE) 98 | 99 | # Rule to build all files generated by this target. 100 | CMakeFiles/server.dir/build: server 101 | 102 | .PHONY : CMakeFiles/server.dir/build 103 | 104 | CMakeFiles/server.dir/requires: CMakeFiles/server.dir/main.cpp.o.requires 105 | 106 | .PHONY : CMakeFiles/server.dir/requires 107 | 108 | CMakeFiles/server.dir/clean: 109 | $(CMAKE_COMMAND) -P CMakeFiles/server.dir/cmake_clean.cmake 110 | .PHONY : CMakeFiles/server.dir/clean 111 | 112 | CMakeFiles/server.dir/depend: 113 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/secondtonone1/workspace/boostserver/BoostServer /home/secondtonone1/workspace/boostserver/BoostServer /home/secondtonone1/workspace/boostserver/BoostServer /home/secondtonone1/workspace/boostserver/BoostServer /home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles/server.dir/DependInfo.cmake --color=$(COLOR) 114 | .PHONY : CMakeFiles/server.dir/depend 115 | 116 | -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/server.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/server.dir/main.cpp.o" 3 | "server.pdb" 4 | "server" 5 | ) 6 | 7 | # Per-language clean rules from dependency scanning. 8 | foreach(lang CXX) 9 | include(CMakeFiles/server.dir/cmake_clean_${lang}.cmake OPTIONAL) 10 | endforeach() 11 | -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/server.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 3 | 4 | # compile CXX with /usr/bin/c++ 5 | CXX_FLAGS = -pthread -Wall -g -std=c++11 6 | 7 | CXX_DEFINES = 8 | 9 | CXX_INCLUDES = -I/usr/local/include 10 | 11 | -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/server.dir/link.txt: -------------------------------------------------------------------------------- 1 | /usr/bin/c++ -pthread -rdynamic CMakeFiles/server.dir/main.cpp.o -o server -L/usr/local/lib -Wl,-rpath,/usr/local/lib -Wl,-Bstatic -lboost_thread -lboost_system -lboost_date_time NetModel/libNetModellib.a Logic/libLogiclib.a -Wl,-Bdynamic 2 | -------------------------------------------------------------------------------- /BoostServer/CMakeFiles/server.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 10 2 | CMAKE_PROGRESS_2 = 11 3 | 4 | -------------------------------------------------------------------------------- /BoostServer/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8) 2 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}-pthread") 3 | project(server) #定义整个CMake的工程名 4 | add_definitions("-Wall -g -std=c++11") # <= 新增的编译选项 5 | #添加头文件搜索路径 6 | include_directories(/usr/local/include) 7 | #添加库文件搜索路径 8 | link_directories(/usr/local/lib) 9 | #添加 netmodel子目录 10 | add_subdirectory(NetModel) 11 | #添加 logic子目录 12 | add_subdirectory(Logic) 13 | #指定生成目标 14 | add_executable(${PROJECT_NAME} main.cpp) 15 | #添加链接库 16 | target_link_libraries(${PROJECT_NAME} "libboost_thread.a" "libboost_system.a" "libboost_date_time.a" NetModellib Logiclib) 17 | -------------------------------------------------------------------------------- /BoostServer/Data/config.ini: -------------------------------------------------------------------------------- 1 | [config] 2 | tcpport = 8898 3 | webport = 8898 4 | -------------------------------------------------------------------------------- /BoostServer/Data/emfile.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/secondtonone1/boostserver/236a2dfe40eba0e429f29fb25578c114fa6f648a/BoostServer/Data/emfile.txt -------------------------------------------------------------------------------- /BoostServer/Debug/BoostServer.Build.CppClean.log: -------------------------------------------------------------------------------- 1 | D:\GITHUB\BOOSTSERVER\BOOSTSERVER\DEBUG\HEARTBEAT.OBJ 2 | D:\GITHUB\BOOSTSERVER\BOOSTSERVER\DEBUG\LOGICSYSTEM.OBJ 3 | D:\GITHUB\BOOSTSERVER\BOOSTSERVER\DEBUG\PLAYER.OBJ 4 | D:\GITHUB\BOOSTSERVER\BOOSTSERVER\DEBUG\MAIN.OBJ 5 | D:\GITHUB\BOOSTSERVER\BOOSTSERVER\DEBUG\SERVER.OBJ 6 | D:\GITHUB\BOOSTSERVER\BOOSTSERVER\DEBUG\STREAMNODE.OBJ 7 | D:\GITHUB\BOOSTSERVER\BOOSTSERVER\DEBUG\SESSION.OBJ 8 | D:\GITHUB\BOOSTSERVER\BOOSTSERVER\DEBUG\VC110.PDB 9 | D:\GITHUB\BOOSTSERVER\DEBUG\BOOSTSERVER.ILK 10 | D:\GITHUB\BOOSTSERVER\DEBUG\BOOSTSERVER.EXE 11 | D:\GITHUB\BOOSTSERVER\DEBUG\BOOSTSERVER.PDB 12 | D:\github\boostserver\BoostServer\Debug\HeartBeat.obj 13 | D:\github\boostserver\BoostServer\Debug\LogicSystem.obj 14 | D:\github\boostserver\BoostServer\Debug\main.obj 15 | D:\github\boostserver\BoostServer\Debug\Player.obj 16 | D:\github\boostserver\BoostServer\Debug\Server.obj 17 | D:\github\boostserver\BoostServer\Debug\Session.obj 18 | D:\github\boostserver\BoostServer\Debug\StreamNode.obj 19 | D:\github\boostserver\BoostServer\Debug\cl.command.1.tlog 20 | D:\github\boostserver\BoostServer\Debug\CL.read.1.tlog 21 | D:\github\boostserver\BoostServer\Debug\CL.write.1.tlog 22 | D:\github\boostserver\BoostServer\Debug\link-cvtres.read.1.tlog 23 | D:\github\boostserver\BoostServer\Debug\link-cvtres.write.1.tlog 24 | D:\github\boostserver\BoostServer\Debug\link-rc.read.1.tlog 25 | D:\github\boostserver\BoostServer\Debug\link-rc.write.1.tlog 26 | D:\github\boostserver\BoostServer\Debug\link.command.1.tlog 27 | D:\github\boostserver\BoostServer\Debug\link.read.1.tlog 28 | D:\github\boostserver\BoostServer\Debug\link.write.1.tlog 29 | D:\github\boostserver\BoostServer\Debug\vc110.idb 30 | D:\github\boostserver\BoostServer\Debug\vc110.pdb 31 | D:\github\boostserver\Debug\BoostServer.pdb 32 | D:\github\boostserver\Debug\BoostServer.exe 33 | D:\github\boostserver\Debug\BoostServer.ilk 34 | -------------------------------------------------------------------------------- /BoostServer/Debug/BoostServer.lastbuildstate: -------------------------------------------------------------------------------- 1 | #v4.0:v110:false 2 | Debug|Win32|D:\github\boostserver\| 3 | -------------------------------------------------------------------------------- /BoostServer/Debug/BoostServer.log: -------------------------------------------------------------------------------- 1 | 生成启动时间为 2018/9/20 星期四 下午 7:11:43。 2 | 1>项目“D:\github\boostserver\BoostServer\BoostServer.vcxproj”在节点 2 上(Build 个目标)。 3 | 1>ClCompile: 4 | F:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\CL.exe /c /ID:\boost_1_68_0 /ZI /nologo /W3 /WX- /sdl /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _CRT_SECURE_NO_WARNINGS /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc110.pdb" /Gd /TP /analyze- /errorReport:prompt Logic\HeartBeat.cpp Logic\LogicSystem.cpp Logic\Player.cpp NetModel\Session.cpp main.cpp 5 | Session.cpp 6 | 1>d:\github\boostserver\boostserver\netmodel\session.cpp : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 7 | 1>d:\github\boostserver\boostserver\netmodel\session.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 8 | Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 9 | - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 10 | - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 11 | Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 12 | 正在生成代码... 13 | 正在编译... 14 | main.cpp 15 | Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 16 | - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 17 | - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 18 | Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 19 | 1>d:\github\boostserver\boostserver\netmodel\server.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 20 | 1>d:\github\boostserver\boostserver\netmodel\session.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 21 | Player.cpp 22 | 1>d:\github\boostserver\boostserver\netmodel\session.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 23 | Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 24 | - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 25 | - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 26 | Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 27 | LogicSystem.cpp 28 | 1>d:\github\boostserver\boostserver\netmodel\session.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 29 | Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 30 | - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 31 | - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 32 | Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 33 | HeartBeat.cpp 34 | 1>d:\github\boostserver\boostserver\netmodel\session.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 35 | Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 36 | - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 37 | - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 38 | Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 39 | 正在生成代码... 40 | Link: 41 | F:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"D:\github\boostserver\Debug\BoostServer.exe" /INCREMENTAL /NOLOGO /LIBPATH:F:\boost\boost_1_53_0\bin\vc11\lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"D:\github\boostserver\Debug\BoostServer.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:\github\boostserver\Debug\BoostServer.lib" /MACHINE:X86 Debug\HeartBeat.obj 42 | Debug\LogicSystem.obj 43 | Debug\Player.obj 44 | Debug\main.obj 45 | Debug\Server.obj 46 | Debug\Session.obj 47 | Debug\StreamNode.obj 48 | BoostServer.vcxproj -> D:\github\boostserver\Debug\BoostServer.exe 49 | 1>已完成生成项目“D:\github\boostserver\BoostServer\BoostServer.vcxproj”(Build 个目标)的操作。 50 | 51 | 生成成功。 52 | 53 | 已用时间 00:00:23.91 54 | -------------------------------------------------------------------------------- /BoostServer/Debug/ConsoleApplication1.log: -------------------------------------------------------------------------------- 1 | 生成启动时间为 2018/9/12 星期三 下午 2:33:09。 2 | 1>项目“D:\github\boostserver\ConsoleApplication1\ConsoleApplication1.vcxproj”在节点 2 上(Rebuild 个目标)。 3 | 1>ClCompile: 4 | F:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\CL.exe /c /ID:\boost_1_68_0 /ZI /nologo /W3 /WX- /sdl /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc110.pdb" /Gd /TP /analyze- /errorReport:prompt Logic\HeartBeat.cpp main.cpp NetModel\Server.cpp NetModel\Session.cpp NetModel\StreamNode.cpp 5 | StreamNode.cpp 6 | Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 7 | - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 8 | - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 9 | Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 10 | Session.cpp 11 | 1>d:\github\boostserver\consoleapplication1\netmodel\session.cpp : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 12 | 1>d:\github\boostserver\consoleapplication1\netmodel\session.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 13 | Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 14 | - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 15 | - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 16 | Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 17 | Server.cpp 18 | 1>d:\github\boostserver\consoleapplication1\netmodel\server.cpp : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 19 | 1>d:\github\boostserver\consoleapplication1\netmodel\server.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 20 | Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 21 | - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 22 | - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 23 | Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 24 | 1>d:\github\boostserver\consoleapplication1\netmodel\session.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 25 | main.cpp 26 | Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 27 | - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 28 | - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 29 | Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 30 | 1>d:\github\boostserver\consoleapplication1\netmodel\server.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 31 | 1>d:\github\boostserver\consoleapplication1\netmodel\session.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 32 | HeartBeat.cpp 33 | 1>d:\github\boostserver\consoleapplication1\netmodel\session.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 34 | Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 35 | - add -D_WIN32_WINNT=0x0501 to the compiler command line; or 36 | - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 37 | Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 38 | 正在生成代码... 39 | Link: 40 | F:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"D:\github\boostserver\Debug\server.exe" /INCREMENTAL /NOLOGO /LIBPATH:F:\boost\boost_1_53_0\bin\vc11\lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"D:\github\boostserver\Debug\server.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:\github\boostserver\Debug\server.lib" /MACHINE:X86 Debug\HeartBeat.obj 41 | Debug\main.obj 42 | Debug\Server.obj 43 | Debug\Session.obj 44 | Debug\StreamNode.obj 45 | ConsoleApplication1.vcxproj -> D:\github\boostserver\Debug\server.exe 46 | 1>已完成生成项目“D:\github\boostserver\ConsoleApplication1\ConsoleApplication1.vcxproj”(Rebuild 个目标)的操作。 47 | 48 | 生成成功。 49 | 50 | 已用时间 00:00:18.80 51 | -------------------------------------------------------------------------------- /BoostServer/Debug/server.Build.CppClean.log: -------------------------------------------------------------------------------- 1 | D:\GITHUB\BOOSTSERVER\CONSOLEAPPLICATION1\DEBUG\HEARTBEAT.OBJ 2 | D:\GITHUB\BOOSTSERVER\CONSOLEAPPLICATION1\DEBUG\MAIN.OBJ 3 | D:\GITHUB\BOOSTSERVER\CONSOLEAPPLICATION1\DEBUG\SERVER.OBJ 4 | D:\GITHUB\BOOSTSERVER\CONSOLEAPPLICATION1\DEBUG\SESSION.OBJ 5 | D:\GITHUB\BOOSTSERVER\CONSOLEAPPLICATION1\DEBUG\STREAMNODE.OBJ 6 | D:\GITHUB\BOOSTSERVER\CONSOLEAPPLICATION1\DEBUG\VC110.PDB 7 | D:\GITHUB\BOOSTSERVER\DEBUG\SERVER.ILK 8 | D:\GITHUB\BOOSTSERVER\DEBUG\SERVER.EXE 9 | D:\GITHUB\BOOSTSERVER\DEBUG\SERVER.PDB 10 | D:\github\boostserver\ConsoleApplication1\Debug\HeartBeat.obj 11 | D:\github\boostserver\ConsoleApplication1\Debug\main.obj 12 | D:\github\boostserver\ConsoleApplication1\Debug\Server.obj 13 | D:\github\boostserver\ConsoleApplication1\Debug\Session.obj 14 | D:\github\boostserver\ConsoleApplication1\Debug\StreamNode.obj 15 | D:\github\boostserver\ConsoleApplication1\Debug\cl.command.1.tlog 16 | D:\github\boostserver\ConsoleApplication1\Debug\CL.read.1.tlog 17 | D:\github\boostserver\ConsoleApplication1\Debug\CL.write.1.tlog 18 | D:\github\boostserver\ConsoleApplication1\Debug\link-cvtres.read.1.tlog 19 | D:\github\boostserver\ConsoleApplication1\Debug\link-cvtres.write.1.tlog 20 | D:\github\boostserver\ConsoleApplication1\Debug\link-rc.read.1.tlog 21 | D:\github\boostserver\ConsoleApplication1\Debug\link-rc.write.1.tlog 22 | D:\github\boostserver\ConsoleApplication1\Debug\link.5136-cvtres.read.1.tlog 23 | D:\github\boostserver\ConsoleApplication1\Debug\link.5136-cvtres.write.1.tlog 24 | D:\github\boostserver\ConsoleApplication1\Debug\link.5136-rc.read.1.tlog 25 | D:\github\boostserver\ConsoleApplication1\Debug\link.5136-rc.write.1.tlog 26 | D:\github\boostserver\ConsoleApplication1\Debug\link.5136.read.1.tlog 27 | D:\github\boostserver\ConsoleApplication1\Debug\link.5136.write.1.tlog 28 | D:\github\boostserver\ConsoleApplication1\Debug\link.command.1.tlog 29 | D:\github\boostserver\ConsoleApplication1\Debug\link.read.1.tlog 30 | D:\github\boostserver\ConsoleApplication1\Debug\link.write.1.tlog 31 | D:\github\boostserver\ConsoleApplication1\Debug\vc110.idb 32 | D:\github\boostserver\ConsoleApplication1\Debug\vc110.pdb 33 | D:\github\boostserver\Debug\server.pdb 34 | D:\github\boostserver\Debug\server.exe 35 | D:\github\boostserver\Debug\server.ilk 36 | -------------------------------------------------------------------------------- /BoostServer/Debug/server.lastbuildstate: -------------------------------------------------------------------------------- 1 | #v4.0:v110:false 2 | Debug|Win32|D:\github\boostserver\| 3 | -------------------------------------------------------------------------------- /BoostServer/Debug/vc110.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/secondtonone1/boostserver/236a2dfe40eba0e429f29fb25578c114fa6f648a/BoostServer/Debug/vc110.pdb -------------------------------------------------------------------------------- /BoostServer/Logic/CMakeFiles/CMakeDirectoryInformation.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 3 | 4 | # Relative path conversion top directories. 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/secondtonone1/workspace/boostserver/BoostServer") 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/secondtonone1/workspace/boostserver/BoostServer") 7 | 8 | # Force unix paths in dependencies. 9 | set(CMAKE_FORCE_UNIX_PATHS 1) 10 | 11 | 12 | # The C and CXX include file regular expressions for this directory. 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) 17 | -------------------------------------------------------------------------------- /BoostServer/Logic/CMakeFiles/Logiclib.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "CXX" 4 | ) 5 | # The set of files for implicit dependencies of each language: 6 | set(CMAKE_DEPENDS_CHECK_CXX 7 | "/home/secondtonone1/workspace/boostserver/BoostServer/Logic/HeartBeat.cpp" "/home/secondtonone1/workspace/boostserver/BoostServer/Logic/CMakeFiles/Logiclib.dir/HeartBeat.cpp.o" 8 | "/home/secondtonone1/workspace/boostserver/BoostServer/Logic/LogicSystem.cpp" "/home/secondtonone1/workspace/boostserver/BoostServer/Logic/CMakeFiles/Logiclib.dir/LogicSystem.cpp.o" 9 | "/home/secondtonone1/workspace/boostserver/BoostServer/Logic/Player.cpp" "/home/secondtonone1/workspace/boostserver/BoostServer/Logic/CMakeFiles/Logiclib.dir/Player.cpp.o" 10 | ) 11 | set(CMAKE_CXX_COMPILER_ID "GNU") 12 | 13 | # The include file search paths: 14 | set(CMAKE_CXX_TARGET_INCLUDE_PATH 15 | "/usr/local/include" 16 | ) 17 | 18 | # Targets to which this target links. 19 | set(CMAKE_TARGET_LINKED_INFO_FILES 20 | ) 21 | 22 | # Fortran module output directory. 23 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 24 | -------------------------------------------------------------------------------- /BoostServer/Logic/CMakeFiles/Logiclib.dir/build.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 3 | 4 | # Delete rule output on recipe failure. 5 | .DELETE_ON_ERROR: 6 | 7 | 8 | #============================================================================= 9 | # Special targets provided by cmake. 10 | 11 | # Disable implicit rules so canonical targets will work. 12 | .SUFFIXES: 13 | 14 | 15 | # Remove some rules from gmake that .SUFFIXES does not remove. 16 | SUFFIXES = 17 | 18 | .SUFFIXES: .hpux_make_needs_suffix_list 19 | 20 | 21 | # Suppress display of executed commands. 22 | $(VERBOSE).SILENT: 23 | 24 | 25 | # A target that is always out of date. 26 | cmake_force: 27 | 28 | .PHONY : cmake_force 29 | 30 | #============================================================================= 31 | # Set environment variables for the build. 32 | 33 | # The shell in which to execute make rules. 34 | SHELL = /bin/sh 35 | 36 | # The CMake executable. 37 | CMAKE_COMMAND = /usr/bin/cmake 38 | 39 | # The command to remove a file. 40 | RM = /usr/bin/cmake -E remove -f 41 | 42 | # Escaping for special characters. 43 | EQUALS = = 44 | 45 | # The top-level source directory on which CMake was run. 46 | CMAKE_SOURCE_DIR = /home/secondtonone1/workspace/boostserver/BoostServer 47 | 48 | # The top-level build directory on which CMake was run. 49 | CMAKE_BINARY_DIR = /home/secondtonone1/workspace/boostserver/BoostServer 50 | 51 | # Include any dependencies generated for this target. 52 | include Logic/CMakeFiles/Logiclib.dir/depend.make 53 | 54 | # Include the progress variables for this target. 55 | include Logic/CMakeFiles/Logiclib.dir/progress.make 56 | 57 | # Include the compile flags for this target's objects. 58 | include Logic/CMakeFiles/Logiclib.dir/flags.make 59 | 60 | Logic/CMakeFiles/Logiclib.dir/HeartBeat.cpp.o: Logic/CMakeFiles/Logiclib.dir/flags.make 61 | Logic/CMakeFiles/Logiclib.dir/HeartBeat.cpp.o: Logic/HeartBeat.cpp 62 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object Logic/CMakeFiles/Logiclib.dir/HeartBeat.cpp.o" 63 | cd /home/secondtonone1/workspace/boostserver/BoostServer/Logic && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/Logiclib.dir/HeartBeat.cpp.o -c /home/secondtonone1/workspace/boostserver/BoostServer/Logic/HeartBeat.cpp 64 | 65 | Logic/CMakeFiles/Logiclib.dir/HeartBeat.cpp.i: cmake_force 66 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/Logiclib.dir/HeartBeat.cpp.i" 67 | cd /home/secondtonone1/workspace/boostserver/BoostServer/Logic && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/secondtonone1/workspace/boostserver/BoostServer/Logic/HeartBeat.cpp > CMakeFiles/Logiclib.dir/HeartBeat.cpp.i 68 | 69 | Logic/CMakeFiles/Logiclib.dir/HeartBeat.cpp.s: cmake_force 70 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/Logiclib.dir/HeartBeat.cpp.s" 71 | cd /home/secondtonone1/workspace/boostserver/BoostServer/Logic && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/secondtonone1/workspace/boostserver/BoostServer/Logic/HeartBeat.cpp -o CMakeFiles/Logiclib.dir/HeartBeat.cpp.s 72 | 73 | Logic/CMakeFiles/Logiclib.dir/HeartBeat.cpp.o.requires: 74 | 75 | .PHONY : Logic/CMakeFiles/Logiclib.dir/HeartBeat.cpp.o.requires 76 | 77 | Logic/CMakeFiles/Logiclib.dir/HeartBeat.cpp.o.provides: Logic/CMakeFiles/Logiclib.dir/HeartBeat.cpp.o.requires 78 | $(MAKE) -f Logic/CMakeFiles/Logiclib.dir/build.make Logic/CMakeFiles/Logiclib.dir/HeartBeat.cpp.o.provides.build 79 | .PHONY : Logic/CMakeFiles/Logiclib.dir/HeartBeat.cpp.o.provides 80 | 81 | Logic/CMakeFiles/Logiclib.dir/HeartBeat.cpp.o.provides.build: Logic/CMakeFiles/Logiclib.dir/HeartBeat.cpp.o 82 | 83 | 84 | Logic/CMakeFiles/Logiclib.dir/LogicSystem.cpp.o: Logic/CMakeFiles/Logiclib.dir/flags.make 85 | Logic/CMakeFiles/Logiclib.dir/LogicSystem.cpp.o: Logic/LogicSystem.cpp 86 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building CXX object Logic/CMakeFiles/Logiclib.dir/LogicSystem.cpp.o" 87 | cd /home/secondtonone1/workspace/boostserver/BoostServer/Logic && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/Logiclib.dir/LogicSystem.cpp.o -c /home/secondtonone1/workspace/boostserver/BoostServer/Logic/LogicSystem.cpp 88 | 89 | Logic/CMakeFiles/Logiclib.dir/LogicSystem.cpp.i: cmake_force 90 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/Logiclib.dir/LogicSystem.cpp.i" 91 | cd /home/secondtonone1/workspace/boostserver/BoostServer/Logic && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/secondtonone1/workspace/boostserver/BoostServer/Logic/LogicSystem.cpp > CMakeFiles/Logiclib.dir/LogicSystem.cpp.i 92 | 93 | Logic/CMakeFiles/Logiclib.dir/LogicSystem.cpp.s: cmake_force 94 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/Logiclib.dir/LogicSystem.cpp.s" 95 | cd /home/secondtonone1/workspace/boostserver/BoostServer/Logic && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/secondtonone1/workspace/boostserver/BoostServer/Logic/LogicSystem.cpp -o CMakeFiles/Logiclib.dir/LogicSystem.cpp.s 96 | 97 | Logic/CMakeFiles/Logiclib.dir/LogicSystem.cpp.o.requires: 98 | 99 | .PHONY : Logic/CMakeFiles/Logiclib.dir/LogicSystem.cpp.o.requires 100 | 101 | Logic/CMakeFiles/Logiclib.dir/LogicSystem.cpp.o.provides: Logic/CMakeFiles/Logiclib.dir/LogicSystem.cpp.o.requires 102 | $(MAKE) -f Logic/CMakeFiles/Logiclib.dir/build.make Logic/CMakeFiles/Logiclib.dir/LogicSystem.cpp.o.provides.build 103 | .PHONY : Logic/CMakeFiles/Logiclib.dir/LogicSystem.cpp.o.provides 104 | 105 | Logic/CMakeFiles/Logiclib.dir/LogicSystem.cpp.o.provides.build: Logic/CMakeFiles/Logiclib.dir/LogicSystem.cpp.o 106 | 107 | 108 | Logic/CMakeFiles/Logiclib.dir/Player.cpp.o: Logic/CMakeFiles/Logiclib.dir/flags.make 109 | Logic/CMakeFiles/Logiclib.dir/Player.cpp.o: Logic/Player.cpp 110 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Building CXX object Logic/CMakeFiles/Logiclib.dir/Player.cpp.o" 111 | cd /home/secondtonone1/workspace/boostserver/BoostServer/Logic && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/Logiclib.dir/Player.cpp.o -c /home/secondtonone1/workspace/boostserver/BoostServer/Logic/Player.cpp 112 | 113 | Logic/CMakeFiles/Logiclib.dir/Player.cpp.i: cmake_force 114 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/Logiclib.dir/Player.cpp.i" 115 | cd /home/secondtonone1/workspace/boostserver/BoostServer/Logic && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/secondtonone1/workspace/boostserver/BoostServer/Logic/Player.cpp > CMakeFiles/Logiclib.dir/Player.cpp.i 116 | 117 | Logic/CMakeFiles/Logiclib.dir/Player.cpp.s: cmake_force 118 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/Logiclib.dir/Player.cpp.s" 119 | cd /home/secondtonone1/workspace/boostserver/BoostServer/Logic && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/secondtonone1/workspace/boostserver/BoostServer/Logic/Player.cpp -o CMakeFiles/Logiclib.dir/Player.cpp.s 120 | 121 | Logic/CMakeFiles/Logiclib.dir/Player.cpp.o.requires: 122 | 123 | .PHONY : Logic/CMakeFiles/Logiclib.dir/Player.cpp.o.requires 124 | 125 | Logic/CMakeFiles/Logiclib.dir/Player.cpp.o.provides: Logic/CMakeFiles/Logiclib.dir/Player.cpp.o.requires 126 | $(MAKE) -f Logic/CMakeFiles/Logiclib.dir/build.make Logic/CMakeFiles/Logiclib.dir/Player.cpp.o.provides.build 127 | .PHONY : Logic/CMakeFiles/Logiclib.dir/Player.cpp.o.provides 128 | 129 | Logic/CMakeFiles/Logiclib.dir/Player.cpp.o.provides.build: Logic/CMakeFiles/Logiclib.dir/Player.cpp.o 130 | 131 | 132 | # Object files for target Logiclib 133 | Logiclib_OBJECTS = \ 134 | "CMakeFiles/Logiclib.dir/HeartBeat.cpp.o" \ 135 | "CMakeFiles/Logiclib.dir/LogicSystem.cpp.o" \ 136 | "CMakeFiles/Logiclib.dir/Player.cpp.o" 137 | 138 | # External object files for target Logiclib 139 | Logiclib_EXTERNAL_OBJECTS = 140 | 141 | Logic/libLogiclib.a: Logic/CMakeFiles/Logiclib.dir/HeartBeat.cpp.o 142 | Logic/libLogiclib.a: Logic/CMakeFiles/Logiclib.dir/LogicSystem.cpp.o 143 | Logic/libLogiclib.a: Logic/CMakeFiles/Logiclib.dir/Player.cpp.o 144 | Logic/libLogiclib.a: Logic/CMakeFiles/Logiclib.dir/build.make 145 | Logic/libLogiclib.a: Logic/CMakeFiles/Logiclib.dir/link.txt 146 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_4) "Linking CXX static library libLogiclib.a" 147 | cd /home/secondtonone1/workspace/boostserver/BoostServer/Logic && $(CMAKE_COMMAND) -P CMakeFiles/Logiclib.dir/cmake_clean_target.cmake 148 | cd /home/secondtonone1/workspace/boostserver/BoostServer/Logic && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/Logiclib.dir/link.txt --verbose=$(VERBOSE) 149 | 150 | # Rule to build all files generated by this target. 151 | Logic/CMakeFiles/Logiclib.dir/build: Logic/libLogiclib.a 152 | 153 | .PHONY : Logic/CMakeFiles/Logiclib.dir/build 154 | 155 | Logic/CMakeFiles/Logiclib.dir/requires: Logic/CMakeFiles/Logiclib.dir/HeartBeat.cpp.o.requires 156 | Logic/CMakeFiles/Logiclib.dir/requires: Logic/CMakeFiles/Logiclib.dir/LogicSystem.cpp.o.requires 157 | Logic/CMakeFiles/Logiclib.dir/requires: Logic/CMakeFiles/Logiclib.dir/Player.cpp.o.requires 158 | 159 | .PHONY : Logic/CMakeFiles/Logiclib.dir/requires 160 | 161 | Logic/CMakeFiles/Logiclib.dir/clean: 162 | cd /home/secondtonone1/workspace/boostserver/BoostServer/Logic && $(CMAKE_COMMAND) -P CMakeFiles/Logiclib.dir/cmake_clean.cmake 163 | .PHONY : Logic/CMakeFiles/Logiclib.dir/clean 164 | 165 | Logic/CMakeFiles/Logiclib.dir/depend: 166 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/secondtonone1/workspace/boostserver/BoostServer /home/secondtonone1/workspace/boostserver/BoostServer/Logic /home/secondtonone1/workspace/boostserver/BoostServer /home/secondtonone1/workspace/boostserver/BoostServer/Logic /home/secondtonone1/workspace/boostserver/BoostServer/Logic/CMakeFiles/Logiclib.dir/DependInfo.cmake --color=$(COLOR) 167 | .PHONY : Logic/CMakeFiles/Logiclib.dir/depend 168 | 169 | -------------------------------------------------------------------------------- /BoostServer/Logic/CMakeFiles/Logiclib.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/Logiclib.dir/HeartBeat.cpp.o" 3 | "CMakeFiles/Logiclib.dir/LogicSystem.cpp.o" 4 | "CMakeFiles/Logiclib.dir/Player.cpp.o" 5 | "libLogiclib.pdb" 6 | "libLogiclib.a" 7 | ) 8 | 9 | # Per-language clean rules from dependency scanning. 10 | foreach(lang CXX) 11 | include(CMakeFiles/Logiclib.dir/cmake_clean_${lang}.cmake OPTIONAL) 12 | endforeach() 13 | -------------------------------------------------------------------------------- /BoostServer/Logic/CMakeFiles/Logiclib.dir/cmake_clean_target.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "libLogiclib.a" 3 | ) 4 | -------------------------------------------------------------------------------- /BoostServer/Logic/CMakeFiles/Logiclib.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 3 | 4 | # compile CXX with /usr/bin/c++ 5 | CXX_FLAGS = -pthread -Wall -g -std=c++11 6 | 7 | CXX_DEFINES = 8 | 9 | CXX_INCLUDES = -I/usr/local/include 10 | 11 | -------------------------------------------------------------------------------- /BoostServer/Logic/CMakeFiles/Logiclib.dir/link.txt: -------------------------------------------------------------------------------- 1 | /usr/bin/ar qc libLogiclib.a CMakeFiles/Logiclib.dir/HeartBeat.cpp.o CMakeFiles/Logiclib.dir/LogicSystem.cpp.o CMakeFiles/Logiclib.dir/Player.cpp.o 2 | /usr/bin/ranlib libLogiclib.a 3 | -------------------------------------------------------------------------------- /BoostServer/Logic/CMakeFiles/Logiclib.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | CMAKE_PROGRESS_3 = 3 4 | CMAKE_PROGRESS_4 = 4 5 | 6 | -------------------------------------------------------------------------------- /BoostServer/Logic/CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 4 2 | -------------------------------------------------------------------------------- /BoostServer/Logic/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # 查找当前目录下的所有源文件 2 | # 并将名称保存到 DIR_LIB_SRCS 变量 3 | aux_source_directory(. DIR_LIB_SRCS) 4 | # 生成链接库 5 | add_library (Logiclib ${DIR_LIB_SRCS}) 6 | -------------------------------------------------------------------------------- /BoostServer/Logic/HeartBeat.cpp: -------------------------------------------------------------------------------- 1 | #include "HeartBeat.h" 2 | #include 3 | 4 | void HeartBeat::HandleHeartBeat(const unsigned int &nMsgId, const std::string &strMsg, const weak_session_ptr &pSession) 5 | { 6 | if(pSession.expired()) 7 | return; 8 | pSession.lock()->updateLive(); 9 | std::string strnotify = "Update HeartBeat Success !!!"; 10 | std::cout <<"send msg: "<< strnotify <write_msg(strnotify.c_str(), nMsgId, strnotify.length()); 12 | } -------------------------------------------------------------------------------- /BoostServer/Logic/HeartBeat.h: -------------------------------------------------------------------------------- 1 | #ifndef __MSG_HEARTBEAT_H__ 2 | #define __MSG_HEARTBEAT_H__ 3 | #include "../NetModel/Singleton.h" 4 | #include "../NetModel/Session.h" 5 | class HeartBeat 6 | { 7 | public: 8 | HeartBeat(){} 9 | ~HeartBeat(){} 10 | static void HandleHeartBeat(const unsigned int &nMsgId, const std::string &strMsg, const weak_session_ptr &pSession); 11 | }; 12 | 13 | #endif //__MSG_HEARTBEAT_H__ -------------------------------------------------------------------------------- /BoostServer/Logic/LogicSystem.cpp: -------------------------------------------------------------------------------- 1 | #include "LogicSystem.h" 2 | #include 3 | #include "MsgDefine.h" 4 | #include 5 | LogicSystem::LogicSystem() 6 | { 7 | 8 | } 9 | 10 | LogicSystem::~LogicSystem() 11 | { 12 | m_mapPlayer.clear(); 13 | } 14 | 15 | void LogicSystem::startup() 16 | { 17 | REGISTER_MSG(); 18 | } 19 | -------------------------------------------------------------------------------- /BoostServer/Logic/LogicSystem.h: -------------------------------------------------------------------------------- 1 | #ifndef __MSG_LOGICSYSTEM_H__ 2 | #define __MSG_LOGICSYSTEM_H__ 3 | #include "../NetModel/Singleton.h" 4 | #include "../NetModel/Session.h" 5 | #include "Player.h" 6 | #include 7 | //A class that handles logic 8 | class LogicSystem: public Singleton 9 | { 10 | public: 11 | LogicSystem(); 12 | ~LogicSystem(); 13 | void startup(); 14 | private: 15 | boost::unordered_map m_mapPlayer; 16 | }; 17 | 18 | #endif //__MSG_LOGICSYSTEM_H__ 19 | -------------------------------------------------------------------------------- /BoostServer/Logic/Makefile: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 3 | 4 | # Default target executed when no arguments are given to make. 5 | default_target: all 6 | 7 | .PHONY : default_target 8 | 9 | # Allow only one "make -f Makefile2" at a time, but pass parallelism. 10 | .NOTPARALLEL: 11 | 12 | 13 | #============================================================================= 14 | # Special targets provided by cmake. 15 | 16 | # Disable implicit rules so canonical targets will work. 17 | .SUFFIXES: 18 | 19 | 20 | # Remove some rules from gmake that .SUFFIXES does not remove. 21 | SUFFIXES = 22 | 23 | .SUFFIXES: .hpux_make_needs_suffix_list 24 | 25 | 26 | # Suppress display of executed commands. 27 | $(VERBOSE).SILENT: 28 | 29 | 30 | # A target that is always out of date. 31 | cmake_force: 32 | 33 | .PHONY : cmake_force 34 | 35 | #============================================================================= 36 | # Set environment variables for the build. 37 | 38 | # The shell in which to execute make rules. 39 | SHELL = /bin/sh 40 | 41 | # The CMake executable. 42 | CMAKE_COMMAND = /usr/bin/cmake 43 | 44 | # The command to remove a file. 45 | RM = /usr/bin/cmake -E remove -f 46 | 47 | # Escaping for special characters. 48 | EQUALS = = 49 | 50 | # The top-level source directory on which CMake was run. 51 | CMAKE_SOURCE_DIR = /home/secondtonone1/workspace/boostserver/BoostServer 52 | 53 | # The top-level build directory on which CMake was run. 54 | CMAKE_BINARY_DIR = /home/secondtonone1/workspace/boostserver/BoostServer 55 | 56 | #============================================================================= 57 | # Targets provided globally by CMake. 58 | 59 | # Special rule for the target rebuild_cache 60 | rebuild_cache: 61 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." 62 | /usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) 63 | .PHONY : rebuild_cache 64 | 65 | # Special rule for the target rebuild_cache 66 | rebuild_cache/fast: rebuild_cache 67 | 68 | .PHONY : rebuild_cache/fast 69 | 70 | # Special rule for the target edit_cache 71 | edit_cache: 72 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..." 73 | /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. 74 | .PHONY : edit_cache 75 | 76 | # Special rule for the target edit_cache 77 | edit_cache/fast: edit_cache 78 | 79 | .PHONY : edit_cache/fast 80 | 81 | # The main all target 82 | all: cmake_check_build_system 83 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(CMAKE_COMMAND) -E cmake_progress_start /home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles /home/secondtonone1/workspace/boostserver/BoostServer/Logic/CMakeFiles/progress.marks 84 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f CMakeFiles/Makefile2 Logic/all 85 | $(CMAKE_COMMAND) -E cmake_progress_start /home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles 0 86 | .PHONY : all 87 | 88 | # The main clean target 89 | clean: 90 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f CMakeFiles/Makefile2 Logic/clean 91 | .PHONY : clean 92 | 93 | # The main clean target 94 | clean/fast: clean 95 | 96 | .PHONY : clean/fast 97 | 98 | # Prepare targets for installation. 99 | preinstall: all 100 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f CMakeFiles/Makefile2 Logic/preinstall 101 | .PHONY : preinstall 102 | 103 | # Prepare targets for installation. 104 | preinstall/fast: 105 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f CMakeFiles/Makefile2 Logic/preinstall 106 | .PHONY : preinstall/fast 107 | 108 | # clear depends 109 | depend: 110 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 111 | .PHONY : depend 112 | 113 | # Convenience name for target. 114 | Logic/CMakeFiles/Logiclib.dir/rule: 115 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f CMakeFiles/Makefile2 Logic/CMakeFiles/Logiclib.dir/rule 116 | .PHONY : Logic/CMakeFiles/Logiclib.dir/rule 117 | 118 | # Convenience name for target. 119 | Logiclib: Logic/CMakeFiles/Logiclib.dir/rule 120 | 121 | .PHONY : Logiclib 122 | 123 | # fast build rule for target. 124 | Logiclib/fast: 125 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f Logic/CMakeFiles/Logiclib.dir/build.make Logic/CMakeFiles/Logiclib.dir/build 126 | .PHONY : Logiclib/fast 127 | 128 | HeartBeat.o: HeartBeat.cpp.o 129 | 130 | .PHONY : HeartBeat.o 131 | 132 | # target to build an object file 133 | HeartBeat.cpp.o: 134 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f Logic/CMakeFiles/Logiclib.dir/build.make Logic/CMakeFiles/Logiclib.dir/HeartBeat.cpp.o 135 | .PHONY : HeartBeat.cpp.o 136 | 137 | HeartBeat.i: HeartBeat.cpp.i 138 | 139 | .PHONY : HeartBeat.i 140 | 141 | # target to preprocess a source file 142 | HeartBeat.cpp.i: 143 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f Logic/CMakeFiles/Logiclib.dir/build.make Logic/CMakeFiles/Logiclib.dir/HeartBeat.cpp.i 144 | .PHONY : HeartBeat.cpp.i 145 | 146 | HeartBeat.s: HeartBeat.cpp.s 147 | 148 | .PHONY : HeartBeat.s 149 | 150 | # target to generate assembly for a file 151 | HeartBeat.cpp.s: 152 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f Logic/CMakeFiles/Logiclib.dir/build.make Logic/CMakeFiles/Logiclib.dir/HeartBeat.cpp.s 153 | .PHONY : HeartBeat.cpp.s 154 | 155 | LogicSystem.o: LogicSystem.cpp.o 156 | 157 | .PHONY : LogicSystem.o 158 | 159 | # target to build an object file 160 | LogicSystem.cpp.o: 161 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f Logic/CMakeFiles/Logiclib.dir/build.make Logic/CMakeFiles/Logiclib.dir/LogicSystem.cpp.o 162 | .PHONY : LogicSystem.cpp.o 163 | 164 | LogicSystem.i: LogicSystem.cpp.i 165 | 166 | .PHONY : LogicSystem.i 167 | 168 | # target to preprocess a source file 169 | LogicSystem.cpp.i: 170 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f Logic/CMakeFiles/Logiclib.dir/build.make Logic/CMakeFiles/Logiclib.dir/LogicSystem.cpp.i 171 | .PHONY : LogicSystem.cpp.i 172 | 173 | LogicSystem.s: LogicSystem.cpp.s 174 | 175 | .PHONY : LogicSystem.s 176 | 177 | # target to generate assembly for a file 178 | LogicSystem.cpp.s: 179 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f Logic/CMakeFiles/Logiclib.dir/build.make Logic/CMakeFiles/Logiclib.dir/LogicSystem.cpp.s 180 | .PHONY : LogicSystem.cpp.s 181 | 182 | Player.o: Player.cpp.o 183 | 184 | .PHONY : Player.o 185 | 186 | # target to build an object file 187 | Player.cpp.o: 188 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f Logic/CMakeFiles/Logiclib.dir/build.make Logic/CMakeFiles/Logiclib.dir/Player.cpp.o 189 | .PHONY : Player.cpp.o 190 | 191 | Player.i: Player.cpp.i 192 | 193 | .PHONY : Player.i 194 | 195 | # target to preprocess a source file 196 | Player.cpp.i: 197 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f Logic/CMakeFiles/Logiclib.dir/build.make Logic/CMakeFiles/Logiclib.dir/Player.cpp.i 198 | .PHONY : Player.cpp.i 199 | 200 | Player.s: Player.cpp.s 201 | 202 | .PHONY : Player.s 203 | 204 | # target to generate assembly for a file 205 | Player.cpp.s: 206 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f Logic/CMakeFiles/Logiclib.dir/build.make Logic/CMakeFiles/Logiclib.dir/Player.cpp.s 207 | .PHONY : Player.cpp.s 208 | 209 | # Help Target 210 | help: 211 | @echo "The following are some of the valid targets for this Makefile:" 212 | @echo "... all (the default if no target is provided)" 213 | @echo "... clean" 214 | @echo "... depend" 215 | @echo "... rebuild_cache" 216 | @echo "... Logiclib" 217 | @echo "... edit_cache" 218 | @echo "... HeartBeat.o" 219 | @echo "... HeartBeat.i" 220 | @echo "... HeartBeat.s" 221 | @echo "... LogicSystem.o" 222 | @echo "... LogicSystem.i" 223 | @echo "... LogicSystem.s" 224 | @echo "... Player.o" 225 | @echo "... Player.i" 226 | @echo "... Player.s" 227 | .PHONY : help 228 | 229 | 230 | 231 | #============================================================================= 232 | # Special targets to cleanup operation of make. 233 | 234 | # Special rule to run CMake to check the build system integrity. 235 | # No rule that depends on this can have commands that come from listfiles 236 | # because they might be regenerated. 237 | cmake_check_build_system: 238 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 239 | .PHONY : cmake_check_build_system 240 | 241 | -------------------------------------------------------------------------------- /BoostServer/Logic/MsgDefine.h: -------------------------------------------------------------------------------- 1 | #ifndef __MSG_DEFINE_H__ 2 | #define __MSG_DEFINE_H__ 3 | #include 4 | #include 5 | #include "../NetModel/MsgHandler.h" 6 | #include "HeartBeat.h" 7 | typedef unsigned long long uint64; 8 | typedef unsigned int uint32; 9 | enum MsgIDs 10 | { 11 | //基本消息 12 | MsgHeartBeat = 1, //心跳 13 | }; 14 | 15 | 16 | #define REGISTER_MSG() do{ \ 17 | MsgHandlerInst::instance()->RegisterMsg(MsgHeartBeat, boost::bind( HeartBeat::HandleHeartBeat, _1,_2,_3)); \ 18 | \ 19 | \ 20 | }while(0) 21 | 22 | 23 | #endif//__MSG_DEFINE_H__ -------------------------------------------------------------------------------- /BoostServer/Logic/Player.cpp: -------------------------------------------------------------------------------- 1 | #include "Player.h" 2 | #include 3 | 4 | Player::Player():m_nPlayerUid(0) 5 | { 6 | 7 | } 8 | 9 | Player::~Player() 10 | { 11 | 12 | } 13 | 14 | -------------------------------------------------------------------------------- /BoostServer/Logic/Player.h: -------------------------------------------------------------------------------- 1 | #ifndef __MSG_PLAYER_H__ 2 | #define __MSG_PLAYER_H__ 3 | #include "../NetModel/Singleton.h" 4 | #include "../NetModel/Session.h" 5 | #include "MsgDefine.h" 6 | //A class that handles logic 7 | class Player 8 | { 9 | public: 10 | Player(); 11 | ~Player(); 12 | private: 13 | uint64 m_nPlayerUid; 14 | 15 | }; 16 | 17 | #endif //__MSG_PLAYER_H__ -------------------------------------------------------------------------------- /BoostServer/Logic/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: /home/secondtonone1/workspace/boostserver/BoostServer/Logic 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "/usr/local") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Install shared libraries without execute permission? 31 | if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) 32 | set(CMAKE_INSTALL_SO_NO_EXE "1") 33 | endif() 34 | 35 | # Is this installation the result of a crosscompile? 36 | if(NOT DEFINED CMAKE_CROSSCOMPILING) 37 | set(CMAKE_CROSSCOMPILING "FALSE") 38 | endif() 39 | 40 | -------------------------------------------------------------------------------- /BoostServer/Makefile: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 3 | 4 | # Default target executed when no arguments are given to make. 5 | default_target: all 6 | 7 | .PHONY : default_target 8 | 9 | # Allow only one "make -f Makefile2" at a time, but pass parallelism. 10 | .NOTPARALLEL: 11 | 12 | 13 | #============================================================================= 14 | # Special targets provided by cmake. 15 | 16 | # Disable implicit rules so canonical targets will work. 17 | .SUFFIXES: 18 | 19 | 20 | # Remove some rules from gmake that .SUFFIXES does not remove. 21 | SUFFIXES = 22 | 23 | .SUFFIXES: .hpux_make_needs_suffix_list 24 | 25 | 26 | # Suppress display of executed commands. 27 | $(VERBOSE).SILENT: 28 | 29 | 30 | # A target that is always out of date. 31 | cmake_force: 32 | 33 | .PHONY : cmake_force 34 | 35 | #============================================================================= 36 | # Set environment variables for the build. 37 | 38 | # The shell in which to execute make rules. 39 | SHELL = /bin/sh 40 | 41 | # The CMake executable. 42 | CMAKE_COMMAND = /usr/bin/cmake 43 | 44 | # The command to remove a file. 45 | RM = /usr/bin/cmake -E remove -f 46 | 47 | # Escaping for special characters. 48 | EQUALS = = 49 | 50 | # The top-level source directory on which CMake was run. 51 | CMAKE_SOURCE_DIR = /home/secondtonone1/workspace/boostserver/BoostServer 52 | 53 | # The top-level build directory on which CMake was run. 54 | CMAKE_BINARY_DIR = /home/secondtonone1/workspace/boostserver/BoostServer 55 | 56 | #============================================================================= 57 | # Targets provided globally by CMake. 58 | 59 | # Special rule for the target rebuild_cache 60 | rebuild_cache: 61 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." 62 | /usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) 63 | .PHONY : rebuild_cache 64 | 65 | # Special rule for the target rebuild_cache 66 | rebuild_cache/fast: rebuild_cache 67 | 68 | .PHONY : rebuild_cache/fast 69 | 70 | # Special rule for the target edit_cache 71 | edit_cache: 72 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..." 73 | /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. 74 | .PHONY : edit_cache 75 | 76 | # Special rule for the target edit_cache 77 | edit_cache/fast: edit_cache 78 | 79 | .PHONY : edit_cache/fast 80 | 81 | # The main all target 82 | all: cmake_check_build_system 83 | $(CMAKE_COMMAND) -E cmake_progress_start /home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles /home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles/progress.marks 84 | $(MAKE) -f CMakeFiles/Makefile2 all 85 | $(CMAKE_COMMAND) -E cmake_progress_start /home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles 0 86 | .PHONY : all 87 | 88 | # The main clean target 89 | clean: 90 | $(MAKE) -f CMakeFiles/Makefile2 clean 91 | .PHONY : clean 92 | 93 | # The main clean target 94 | clean/fast: clean 95 | 96 | .PHONY : clean/fast 97 | 98 | # Prepare targets for installation. 99 | preinstall: all 100 | $(MAKE) -f CMakeFiles/Makefile2 preinstall 101 | .PHONY : preinstall 102 | 103 | # Prepare targets for installation. 104 | preinstall/fast: 105 | $(MAKE) -f CMakeFiles/Makefile2 preinstall 106 | .PHONY : preinstall/fast 107 | 108 | # clear depends 109 | depend: 110 | $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 111 | .PHONY : depend 112 | 113 | #============================================================================= 114 | # Target rules for targets named server 115 | 116 | # Build rule for target. 117 | server: cmake_check_build_system 118 | $(MAKE) -f CMakeFiles/Makefile2 server 119 | .PHONY : server 120 | 121 | # fast build rule for target. 122 | server/fast: 123 | $(MAKE) -f CMakeFiles/server.dir/build.make CMakeFiles/server.dir/build 124 | .PHONY : server/fast 125 | 126 | #============================================================================= 127 | # Target rules for targets named NetModellib 128 | 129 | # Build rule for target. 130 | NetModellib: cmake_check_build_system 131 | $(MAKE) -f CMakeFiles/Makefile2 NetModellib 132 | .PHONY : NetModellib 133 | 134 | # fast build rule for target. 135 | NetModellib/fast: 136 | $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/build 137 | .PHONY : NetModellib/fast 138 | 139 | #============================================================================= 140 | # Target rules for targets named Logiclib 141 | 142 | # Build rule for target. 143 | Logiclib: cmake_check_build_system 144 | $(MAKE) -f CMakeFiles/Makefile2 Logiclib 145 | .PHONY : Logiclib 146 | 147 | # fast build rule for target. 148 | Logiclib/fast: 149 | $(MAKE) -f Logic/CMakeFiles/Logiclib.dir/build.make Logic/CMakeFiles/Logiclib.dir/build 150 | .PHONY : Logiclib/fast 151 | 152 | main.o: main.cpp.o 153 | 154 | .PHONY : main.o 155 | 156 | # target to build an object file 157 | main.cpp.o: 158 | $(MAKE) -f CMakeFiles/server.dir/build.make CMakeFiles/server.dir/main.cpp.o 159 | .PHONY : main.cpp.o 160 | 161 | main.i: main.cpp.i 162 | 163 | .PHONY : main.i 164 | 165 | # target to preprocess a source file 166 | main.cpp.i: 167 | $(MAKE) -f CMakeFiles/server.dir/build.make CMakeFiles/server.dir/main.cpp.i 168 | .PHONY : main.cpp.i 169 | 170 | main.s: main.cpp.s 171 | 172 | .PHONY : main.s 173 | 174 | # target to generate assembly for a file 175 | main.cpp.s: 176 | $(MAKE) -f CMakeFiles/server.dir/build.make CMakeFiles/server.dir/main.cpp.s 177 | .PHONY : main.cpp.s 178 | 179 | # Help Target 180 | help: 181 | @echo "The following are some of the valid targets for this Makefile:" 182 | @echo "... all (the default if no target is provided)" 183 | @echo "... clean" 184 | @echo "... depend" 185 | @echo "... rebuild_cache" 186 | @echo "... server" 187 | @echo "... edit_cache" 188 | @echo "... NetModellib" 189 | @echo "... Logiclib" 190 | @echo "... main.o" 191 | @echo "... main.i" 192 | @echo "... main.s" 193 | .PHONY : help 194 | 195 | 196 | 197 | #============================================================================= 198 | # Special targets to cleanup operation of make. 199 | 200 | # Special rule to run CMake to check the build system integrity. 201 | # No rule that depends on this can have commands that come from listfiles 202 | # because they might be regenerated. 203 | cmake_check_build_system: 204 | $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 205 | .PHONY : cmake_check_build_system 206 | 207 | -------------------------------------------------------------------------------- /BoostServer/NetModel/.Server.cpp.swp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/secondtonone1/boostserver/236a2dfe40eba0e429f29fb25578c114fa6f648a/BoostServer/NetModel/.Server.cpp.swp -------------------------------------------------------------------------------- /BoostServer/NetModel/Base64.cpp: -------------------------------------------------------------------------------- 1 | #include "Base64.h" 2 | #include 3 | 4 | static const std::string base64_chars = 5 | "ABCDEFGHIJKLMNOPQRSTUVWXYZ" 6 | "abcdefghijklmnopqrstuvwxyz" 7 | "0123456789+/"; 8 | 9 | 10 | static inline bool is_base64(unsigned char c) { 11 | return (isalnum(c) || (c == '+') || (c == '/')); 12 | } 13 | 14 | std::string Base64Handler::base64_encode(unsigned char const* bytes_to_encode, unsigned int in_len) { 15 | std::string ret; 16 | int i = 0; 17 | int j = 0; 18 | unsigned char char_array_3[3]; 19 | unsigned char char_array_4[4]; 20 | 21 | while (in_len--) { 22 | char_array_3[i++] = *(bytes_to_encode++); 23 | if (i == 3) { 24 | char_array_4[0] = (char_array_3[0] & 0xfc) >> 2; 25 | char_array_4[1] = ((char_array_3[0] & 0x03) << 4) + ((char_array_3[1] & 0xf0) >> 4); 26 | char_array_4[2] = ((char_array_3[1] & 0x0f) << 2) + ((char_array_3[2] & 0xc0) >> 6); 27 | char_array_4[3] = char_array_3[2] & 0x3f; 28 | 29 | for(i = 0; (i <4) ; i++) 30 | ret += base64_chars[char_array_4[i]]; 31 | i = 0; 32 | } 33 | } 34 | 35 | if (i) 36 | { 37 | for(j = i; j < 3; j++) 38 | char_array_3[j] = '\0'; 39 | 40 | char_array_4[0] = (char_array_3[0] & 0xfc) >> 2; 41 | char_array_4[1] = ((char_array_3[0] & 0x03) << 4) + ((char_array_3[1] & 0xf0) >> 4); 42 | char_array_4[2] = ((char_array_3[1] & 0x0f) << 2) + ((char_array_3[2] & 0xc0) >> 6); 43 | char_array_4[3] = char_array_3[2] & 0x3f; 44 | 45 | for (j = 0; (j < i + 1); j++) 46 | ret += base64_chars[char_array_4[j]]; 47 | 48 | while((i++ < 3)) 49 | ret += '='; 50 | 51 | } 52 | 53 | return ret; 54 | 55 | } 56 | 57 | std::string Base64Handler::base64_decode(std::string const& encoded_string) { 58 | int in_len = encoded_string.size(); 59 | int i = 0; 60 | int j = 0; 61 | int in_ = 0; 62 | unsigned char char_array_4[4], char_array_3[3]; 63 | std::string ret; 64 | 65 | while (in_len-- && ( encoded_string[in_] != '=') && is_base64(encoded_string[in_])) { 66 | char_array_4[i++] = encoded_string[in_]; in_++; 67 | if (i ==4) { 68 | for (i = 0; i <4; i++) 69 | char_array_4[i] = base64_chars.find(char_array_4[i]); 70 | 71 | char_array_3[0] = (char_array_4[0] << 2) + ((char_array_4[1] & 0x30) >> 4); 72 | char_array_3[1] = ((char_array_4[1] & 0xf) << 4) + ((char_array_4[2] & 0x3c) >> 2); 73 | char_array_3[2] = ((char_array_4[2] & 0x3) << 6) + char_array_4[3]; 74 | 75 | for (i = 0; (i < 3); i++) 76 | ret += char_array_3[i]; 77 | i = 0; 78 | } 79 | } 80 | 81 | if (i) { 82 | for (j = i; j <4; j++) 83 | char_array_4[j] = 0; 84 | 85 | for (j = 0; j <4; j++) 86 | char_array_4[j] = base64_chars.find(char_array_4[j]); 87 | 88 | char_array_3[0] = (char_array_4[0] << 2) + ((char_array_4[1] & 0x30) >> 4); 89 | char_array_3[1] = ((char_array_4[1] & 0xf) << 4) + ((char_array_4[2] & 0x3c) >> 2); 90 | char_array_3[2] = ((char_array_4[2] & 0x3) << 6) + char_array_4[3]; 91 | 92 | for (j = 0; (j < i - 1); j++) ret += char_array_3[j]; 93 | } 94 | 95 | return ret; 96 | } 97 | 98 | -------------------------------------------------------------------------------- /BoostServer/NetModel/Base64.h: -------------------------------------------------------------------------------- 1 | #ifndef __MSG_BASE64_H__ 2 | #define __MSG_BASE64_H__ 3 | #include 4 | #include 5 | #include "Singleton.h" 6 | #include 7 | #include 8 | #include 9 | using namespace std; 10 | 11 | class Base64Handler 12 | { 13 | public: 14 | Base64Handler(){} 15 | ~Base64Handler(){} 16 | std::string base64_encode(unsigned char const* , unsigned int len); 17 | std::string base64_decode(std::string const& s); 18 | private: 19 | 20 | }; 21 | typedef Singleton Base64HandlerInst; 22 | 23 | #endif//__MSG_BASE64_H__ 24 | 25 | -------------------------------------------------------------------------------- /BoostServer/NetModel/CMakeFiles/CMakeDirectoryInformation.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 3 | 4 | # Relative path conversion top directories. 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/secondtonone1/workspace/boostserver/BoostServer") 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/secondtonone1/workspace/boostserver/BoostServer") 7 | 8 | # Force unix paths in dependencies. 9 | set(CMAKE_FORCE_UNIX_PATHS 1) 10 | 11 | 12 | # The C and CXX include file regular expressions for this directory. 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) 17 | -------------------------------------------------------------------------------- /BoostServer/NetModel/CMakeFiles/NetModellib.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "CXX" 4 | ) 5 | # The set of files for implicit dependencies of each language: 6 | set(CMAKE_DEPENDS_CHECK_CXX 7 | "/home/secondtonone1/workspace/boostserver/BoostServer/NetModel/Base64.cpp" "/home/secondtonone1/workspace/boostserver/BoostServer/NetModel/CMakeFiles/NetModellib.dir/Base64.cpp.o" 8 | "/home/secondtonone1/workspace/boostserver/BoostServer/NetModel/Server.cpp" "/home/secondtonone1/workspace/boostserver/BoostServer/NetModel/CMakeFiles/NetModellib.dir/Server.cpp.o" 9 | "/home/secondtonone1/workspace/boostserver/BoostServer/NetModel/Session.cpp" "/home/secondtonone1/workspace/boostserver/BoostServer/NetModel/CMakeFiles/NetModellib.dir/Session.cpp.o" 10 | "/home/secondtonone1/workspace/boostserver/BoostServer/NetModel/StreamNode.cpp" "/home/secondtonone1/workspace/boostserver/BoostServer/NetModel/CMakeFiles/NetModellib.dir/StreamNode.cpp.o" 11 | ) 12 | set(CMAKE_CXX_COMPILER_ID "GNU") 13 | 14 | # The include file search paths: 15 | set(CMAKE_CXX_TARGET_INCLUDE_PATH 16 | "/usr/local/include" 17 | ) 18 | 19 | # Targets to which this target links. 20 | set(CMAKE_TARGET_LINKED_INFO_FILES 21 | ) 22 | 23 | # Fortran module output directory. 24 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 25 | -------------------------------------------------------------------------------- /BoostServer/NetModel/CMakeFiles/NetModellib.dir/build.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 3 | 4 | # Delete rule output on recipe failure. 5 | .DELETE_ON_ERROR: 6 | 7 | 8 | #============================================================================= 9 | # Special targets provided by cmake. 10 | 11 | # Disable implicit rules so canonical targets will work. 12 | .SUFFIXES: 13 | 14 | 15 | # Remove some rules from gmake that .SUFFIXES does not remove. 16 | SUFFIXES = 17 | 18 | .SUFFIXES: .hpux_make_needs_suffix_list 19 | 20 | 21 | # Suppress display of executed commands. 22 | $(VERBOSE).SILENT: 23 | 24 | 25 | # A target that is always out of date. 26 | cmake_force: 27 | 28 | .PHONY : cmake_force 29 | 30 | #============================================================================= 31 | # Set environment variables for the build. 32 | 33 | # The shell in which to execute make rules. 34 | SHELL = /bin/sh 35 | 36 | # The CMake executable. 37 | CMAKE_COMMAND = /usr/bin/cmake 38 | 39 | # The command to remove a file. 40 | RM = /usr/bin/cmake -E remove -f 41 | 42 | # Escaping for special characters. 43 | EQUALS = = 44 | 45 | # The top-level source directory on which CMake was run. 46 | CMAKE_SOURCE_DIR = /home/secondtonone1/workspace/boostserver/BoostServer 47 | 48 | # The top-level build directory on which CMake was run. 49 | CMAKE_BINARY_DIR = /home/secondtonone1/workspace/boostserver/BoostServer 50 | 51 | # Include any dependencies generated for this target. 52 | include NetModel/CMakeFiles/NetModellib.dir/depend.make 53 | 54 | # Include the progress variables for this target. 55 | include NetModel/CMakeFiles/NetModellib.dir/progress.make 56 | 57 | # Include the compile flags for this target's objects. 58 | include NetModel/CMakeFiles/NetModellib.dir/flags.make 59 | 60 | NetModel/CMakeFiles/NetModellib.dir/Base64.cpp.o: NetModel/CMakeFiles/NetModellib.dir/flags.make 61 | NetModel/CMakeFiles/NetModellib.dir/Base64.cpp.o: NetModel/Base64.cpp 62 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object NetModel/CMakeFiles/NetModellib.dir/Base64.cpp.o" 63 | cd /home/secondtonone1/workspace/boostserver/BoostServer/NetModel && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/NetModellib.dir/Base64.cpp.o -c /home/secondtonone1/workspace/boostserver/BoostServer/NetModel/Base64.cpp 64 | 65 | NetModel/CMakeFiles/NetModellib.dir/Base64.cpp.i: cmake_force 66 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/NetModellib.dir/Base64.cpp.i" 67 | cd /home/secondtonone1/workspace/boostserver/BoostServer/NetModel && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/secondtonone1/workspace/boostserver/BoostServer/NetModel/Base64.cpp > CMakeFiles/NetModellib.dir/Base64.cpp.i 68 | 69 | NetModel/CMakeFiles/NetModellib.dir/Base64.cpp.s: cmake_force 70 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/NetModellib.dir/Base64.cpp.s" 71 | cd /home/secondtonone1/workspace/boostserver/BoostServer/NetModel && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/secondtonone1/workspace/boostserver/BoostServer/NetModel/Base64.cpp -o CMakeFiles/NetModellib.dir/Base64.cpp.s 72 | 73 | NetModel/CMakeFiles/NetModellib.dir/Base64.cpp.o.requires: 74 | 75 | .PHONY : NetModel/CMakeFiles/NetModellib.dir/Base64.cpp.o.requires 76 | 77 | NetModel/CMakeFiles/NetModellib.dir/Base64.cpp.o.provides: NetModel/CMakeFiles/NetModellib.dir/Base64.cpp.o.requires 78 | $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/Base64.cpp.o.provides.build 79 | .PHONY : NetModel/CMakeFiles/NetModellib.dir/Base64.cpp.o.provides 80 | 81 | NetModel/CMakeFiles/NetModellib.dir/Base64.cpp.o.provides.build: NetModel/CMakeFiles/NetModellib.dir/Base64.cpp.o 82 | 83 | 84 | NetModel/CMakeFiles/NetModellib.dir/Server.cpp.o: NetModel/CMakeFiles/NetModellib.dir/flags.make 85 | NetModel/CMakeFiles/NetModellib.dir/Server.cpp.o: NetModel/Server.cpp 86 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building CXX object NetModel/CMakeFiles/NetModellib.dir/Server.cpp.o" 87 | cd /home/secondtonone1/workspace/boostserver/BoostServer/NetModel && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/NetModellib.dir/Server.cpp.o -c /home/secondtonone1/workspace/boostserver/BoostServer/NetModel/Server.cpp 88 | 89 | NetModel/CMakeFiles/NetModellib.dir/Server.cpp.i: cmake_force 90 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/NetModellib.dir/Server.cpp.i" 91 | cd /home/secondtonone1/workspace/boostserver/BoostServer/NetModel && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/secondtonone1/workspace/boostserver/BoostServer/NetModel/Server.cpp > CMakeFiles/NetModellib.dir/Server.cpp.i 92 | 93 | NetModel/CMakeFiles/NetModellib.dir/Server.cpp.s: cmake_force 94 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/NetModellib.dir/Server.cpp.s" 95 | cd /home/secondtonone1/workspace/boostserver/BoostServer/NetModel && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/secondtonone1/workspace/boostserver/BoostServer/NetModel/Server.cpp -o CMakeFiles/NetModellib.dir/Server.cpp.s 96 | 97 | NetModel/CMakeFiles/NetModellib.dir/Server.cpp.o.requires: 98 | 99 | .PHONY : NetModel/CMakeFiles/NetModellib.dir/Server.cpp.o.requires 100 | 101 | NetModel/CMakeFiles/NetModellib.dir/Server.cpp.o.provides: NetModel/CMakeFiles/NetModellib.dir/Server.cpp.o.requires 102 | $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/Server.cpp.o.provides.build 103 | .PHONY : NetModel/CMakeFiles/NetModellib.dir/Server.cpp.o.provides 104 | 105 | NetModel/CMakeFiles/NetModellib.dir/Server.cpp.o.provides.build: NetModel/CMakeFiles/NetModellib.dir/Server.cpp.o 106 | 107 | 108 | NetModel/CMakeFiles/NetModellib.dir/Session.cpp.o: NetModel/CMakeFiles/NetModellib.dir/flags.make 109 | NetModel/CMakeFiles/NetModellib.dir/Session.cpp.o: NetModel/Session.cpp 110 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Building CXX object NetModel/CMakeFiles/NetModellib.dir/Session.cpp.o" 111 | cd /home/secondtonone1/workspace/boostserver/BoostServer/NetModel && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/NetModellib.dir/Session.cpp.o -c /home/secondtonone1/workspace/boostserver/BoostServer/NetModel/Session.cpp 112 | 113 | NetModel/CMakeFiles/NetModellib.dir/Session.cpp.i: cmake_force 114 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/NetModellib.dir/Session.cpp.i" 115 | cd /home/secondtonone1/workspace/boostserver/BoostServer/NetModel && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/secondtonone1/workspace/boostserver/BoostServer/NetModel/Session.cpp > CMakeFiles/NetModellib.dir/Session.cpp.i 116 | 117 | NetModel/CMakeFiles/NetModellib.dir/Session.cpp.s: cmake_force 118 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/NetModellib.dir/Session.cpp.s" 119 | cd /home/secondtonone1/workspace/boostserver/BoostServer/NetModel && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/secondtonone1/workspace/boostserver/BoostServer/NetModel/Session.cpp -o CMakeFiles/NetModellib.dir/Session.cpp.s 120 | 121 | NetModel/CMakeFiles/NetModellib.dir/Session.cpp.o.requires: 122 | 123 | .PHONY : NetModel/CMakeFiles/NetModellib.dir/Session.cpp.o.requires 124 | 125 | NetModel/CMakeFiles/NetModellib.dir/Session.cpp.o.provides: NetModel/CMakeFiles/NetModellib.dir/Session.cpp.o.requires 126 | $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/Session.cpp.o.provides.build 127 | .PHONY : NetModel/CMakeFiles/NetModellib.dir/Session.cpp.o.provides 128 | 129 | NetModel/CMakeFiles/NetModellib.dir/Session.cpp.o.provides.build: NetModel/CMakeFiles/NetModellib.dir/Session.cpp.o 130 | 131 | 132 | NetModel/CMakeFiles/NetModellib.dir/StreamNode.cpp.o: NetModel/CMakeFiles/NetModellib.dir/flags.make 133 | NetModel/CMakeFiles/NetModellib.dir/StreamNode.cpp.o: NetModel/StreamNode.cpp 134 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_4) "Building CXX object NetModel/CMakeFiles/NetModellib.dir/StreamNode.cpp.o" 135 | cd /home/secondtonone1/workspace/boostserver/BoostServer/NetModel && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/NetModellib.dir/StreamNode.cpp.o -c /home/secondtonone1/workspace/boostserver/BoostServer/NetModel/StreamNode.cpp 136 | 137 | NetModel/CMakeFiles/NetModellib.dir/StreamNode.cpp.i: cmake_force 138 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/NetModellib.dir/StreamNode.cpp.i" 139 | cd /home/secondtonone1/workspace/boostserver/BoostServer/NetModel && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/secondtonone1/workspace/boostserver/BoostServer/NetModel/StreamNode.cpp > CMakeFiles/NetModellib.dir/StreamNode.cpp.i 140 | 141 | NetModel/CMakeFiles/NetModellib.dir/StreamNode.cpp.s: cmake_force 142 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/NetModellib.dir/StreamNode.cpp.s" 143 | cd /home/secondtonone1/workspace/boostserver/BoostServer/NetModel && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/secondtonone1/workspace/boostserver/BoostServer/NetModel/StreamNode.cpp -o CMakeFiles/NetModellib.dir/StreamNode.cpp.s 144 | 145 | NetModel/CMakeFiles/NetModellib.dir/StreamNode.cpp.o.requires: 146 | 147 | .PHONY : NetModel/CMakeFiles/NetModellib.dir/StreamNode.cpp.o.requires 148 | 149 | NetModel/CMakeFiles/NetModellib.dir/StreamNode.cpp.o.provides: NetModel/CMakeFiles/NetModellib.dir/StreamNode.cpp.o.requires 150 | $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/StreamNode.cpp.o.provides.build 151 | .PHONY : NetModel/CMakeFiles/NetModellib.dir/StreamNode.cpp.o.provides 152 | 153 | NetModel/CMakeFiles/NetModellib.dir/StreamNode.cpp.o.provides.build: NetModel/CMakeFiles/NetModellib.dir/StreamNode.cpp.o 154 | 155 | 156 | # Object files for target NetModellib 157 | NetModellib_OBJECTS = \ 158 | "CMakeFiles/NetModellib.dir/Base64.cpp.o" \ 159 | "CMakeFiles/NetModellib.dir/Server.cpp.o" \ 160 | "CMakeFiles/NetModellib.dir/Session.cpp.o" \ 161 | "CMakeFiles/NetModellib.dir/StreamNode.cpp.o" 162 | 163 | # External object files for target NetModellib 164 | NetModellib_EXTERNAL_OBJECTS = 165 | 166 | NetModel/libNetModellib.a: NetModel/CMakeFiles/NetModellib.dir/Base64.cpp.o 167 | NetModel/libNetModellib.a: NetModel/CMakeFiles/NetModellib.dir/Server.cpp.o 168 | NetModel/libNetModellib.a: NetModel/CMakeFiles/NetModellib.dir/Session.cpp.o 169 | NetModel/libNetModellib.a: NetModel/CMakeFiles/NetModellib.dir/StreamNode.cpp.o 170 | NetModel/libNetModellib.a: NetModel/CMakeFiles/NetModellib.dir/build.make 171 | NetModel/libNetModellib.a: NetModel/CMakeFiles/NetModellib.dir/link.txt 172 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles --progress-num=$(CMAKE_PROGRESS_5) "Linking CXX static library libNetModellib.a" 173 | cd /home/secondtonone1/workspace/boostserver/BoostServer/NetModel && $(CMAKE_COMMAND) -P CMakeFiles/NetModellib.dir/cmake_clean_target.cmake 174 | cd /home/secondtonone1/workspace/boostserver/BoostServer/NetModel && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/NetModellib.dir/link.txt --verbose=$(VERBOSE) 175 | 176 | # Rule to build all files generated by this target. 177 | NetModel/CMakeFiles/NetModellib.dir/build: NetModel/libNetModellib.a 178 | 179 | .PHONY : NetModel/CMakeFiles/NetModellib.dir/build 180 | 181 | NetModel/CMakeFiles/NetModellib.dir/requires: NetModel/CMakeFiles/NetModellib.dir/Base64.cpp.o.requires 182 | NetModel/CMakeFiles/NetModellib.dir/requires: NetModel/CMakeFiles/NetModellib.dir/Server.cpp.o.requires 183 | NetModel/CMakeFiles/NetModellib.dir/requires: NetModel/CMakeFiles/NetModellib.dir/Session.cpp.o.requires 184 | NetModel/CMakeFiles/NetModellib.dir/requires: NetModel/CMakeFiles/NetModellib.dir/StreamNode.cpp.o.requires 185 | 186 | .PHONY : NetModel/CMakeFiles/NetModellib.dir/requires 187 | 188 | NetModel/CMakeFiles/NetModellib.dir/clean: 189 | cd /home/secondtonone1/workspace/boostserver/BoostServer/NetModel && $(CMAKE_COMMAND) -P CMakeFiles/NetModellib.dir/cmake_clean.cmake 190 | .PHONY : NetModel/CMakeFiles/NetModellib.dir/clean 191 | 192 | NetModel/CMakeFiles/NetModellib.dir/depend: 193 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/secondtonone1/workspace/boostserver/BoostServer /home/secondtonone1/workspace/boostserver/BoostServer/NetModel /home/secondtonone1/workspace/boostserver/BoostServer /home/secondtonone1/workspace/boostserver/BoostServer/NetModel /home/secondtonone1/workspace/boostserver/BoostServer/NetModel/CMakeFiles/NetModellib.dir/DependInfo.cmake --color=$(COLOR) 194 | .PHONY : NetModel/CMakeFiles/NetModellib.dir/depend 195 | 196 | -------------------------------------------------------------------------------- /BoostServer/NetModel/CMakeFiles/NetModellib.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/NetModellib.dir/Base64.cpp.o" 3 | "CMakeFiles/NetModellib.dir/Server.cpp.o" 4 | "CMakeFiles/NetModellib.dir/Session.cpp.o" 5 | "CMakeFiles/NetModellib.dir/StreamNode.cpp.o" 6 | "libNetModellib.pdb" 7 | "libNetModellib.a" 8 | ) 9 | 10 | # Per-language clean rules from dependency scanning. 11 | foreach(lang CXX) 12 | include(CMakeFiles/NetModellib.dir/cmake_clean_${lang}.cmake OPTIONAL) 13 | endforeach() 14 | -------------------------------------------------------------------------------- /BoostServer/NetModel/CMakeFiles/NetModellib.dir/cmake_clean_target.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "libNetModellib.a" 3 | ) 4 | -------------------------------------------------------------------------------- /BoostServer/NetModel/CMakeFiles/NetModellib.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 3 | 4 | # compile CXX with /usr/bin/c++ 5 | CXX_FLAGS = -pthread -Wall -g -std=c++11 6 | 7 | CXX_DEFINES = 8 | 9 | CXX_INCLUDES = -I/usr/local/include 10 | 11 | -------------------------------------------------------------------------------- /BoostServer/NetModel/CMakeFiles/NetModellib.dir/link.txt: -------------------------------------------------------------------------------- 1 | /usr/bin/ar qc libNetModellib.a CMakeFiles/NetModellib.dir/Base64.cpp.o CMakeFiles/NetModellib.dir/Server.cpp.o CMakeFiles/NetModellib.dir/Session.cpp.o CMakeFiles/NetModellib.dir/StreamNode.cpp.o 2 | /usr/bin/ranlib libNetModellib.a 3 | -------------------------------------------------------------------------------- /BoostServer/NetModel/CMakeFiles/NetModellib.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 5 2 | CMAKE_PROGRESS_2 = 6 3 | CMAKE_PROGRESS_3 = 7 4 | CMAKE_PROGRESS_4 = 8 5 | CMAKE_PROGRESS_5 = 9 6 | 7 | -------------------------------------------------------------------------------- /BoostServer/NetModel/CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /BoostServer/NetModel/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # 查找当前目录下的所有源文件 2 | # 并将名称保存到 DIR_LIB_SRCS 变量 3 | aux_source_directory(. DIR_LIB_SRCS) 4 | # 生成链接库 5 | add_library (NetModellib ${DIR_LIB_SRCS}) 6 | 7 | 8 | -------------------------------------------------------------------------------- /BoostServer/NetModel/Makefile: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.10 3 | 4 | # Default target executed when no arguments are given to make. 5 | default_target: all 6 | 7 | .PHONY : default_target 8 | 9 | # Allow only one "make -f Makefile2" at a time, but pass parallelism. 10 | .NOTPARALLEL: 11 | 12 | 13 | #============================================================================= 14 | # Special targets provided by cmake. 15 | 16 | # Disable implicit rules so canonical targets will work. 17 | .SUFFIXES: 18 | 19 | 20 | # Remove some rules from gmake that .SUFFIXES does not remove. 21 | SUFFIXES = 22 | 23 | .SUFFIXES: .hpux_make_needs_suffix_list 24 | 25 | 26 | # Suppress display of executed commands. 27 | $(VERBOSE).SILENT: 28 | 29 | 30 | # A target that is always out of date. 31 | cmake_force: 32 | 33 | .PHONY : cmake_force 34 | 35 | #============================================================================= 36 | # Set environment variables for the build. 37 | 38 | # The shell in which to execute make rules. 39 | SHELL = /bin/sh 40 | 41 | # The CMake executable. 42 | CMAKE_COMMAND = /usr/bin/cmake 43 | 44 | # The command to remove a file. 45 | RM = /usr/bin/cmake -E remove -f 46 | 47 | # Escaping for special characters. 48 | EQUALS = = 49 | 50 | # The top-level source directory on which CMake was run. 51 | CMAKE_SOURCE_DIR = /home/secondtonone1/workspace/boostserver/BoostServer 52 | 53 | # The top-level build directory on which CMake was run. 54 | CMAKE_BINARY_DIR = /home/secondtonone1/workspace/boostserver/BoostServer 55 | 56 | #============================================================================= 57 | # Targets provided globally by CMake. 58 | 59 | # Special rule for the target rebuild_cache 60 | rebuild_cache: 61 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." 62 | /usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) 63 | .PHONY : rebuild_cache 64 | 65 | # Special rule for the target rebuild_cache 66 | rebuild_cache/fast: rebuild_cache 67 | 68 | .PHONY : rebuild_cache/fast 69 | 70 | # Special rule for the target edit_cache 71 | edit_cache: 72 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..." 73 | /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. 74 | .PHONY : edit_cache 75 | 76 | # Special rule for the target edit_cache 77 | edit_cache/fast: edit_cache 78 | 79 | .PHONY : edit_cache/fast 80 | 81 | # The main all target 82 | all: cmake_check_build_system 83 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(CMAKE_COMMAND) -E cmake_progress_start /home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles /home/secondtonone1/workspace/boostserver/BoostServer/NetModel/CMakeFiles/progress.marks 84 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f CMakeFiles/Makefile2 NetModel/all 85 | $(CMAKE_COMMAND) -E cmake_progress_start /home/secondtonone1/workspace/boostserver/BoostServer/CMakeFiles 0 86 | .PHONY : all 87 | 88 | # The main clean target 89 | clean: 90 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f CMakeFiles/Makefile2 NetModel/clean 91 | .PHONY : clean 92 | 93 | # The main clean target 94 | clean/fast: clean 95 | 96 | .PHONY : clean/fast 97 | 98 | # Prepare targets for installation. 99 | preinstall: all 100 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f CMakeFiles/Makefile2 NetModel/preinstall 101 | .PHONY : preinstall 102 | 103 | # Prepare targets for installation. 104 | preinstall/fast: 105 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f CMakeFiles/Makefile2 NetModel/preinstall 106 | .PHONY : preinstall/fast 107 | 108 | # clear depends 109 | depend: 110 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 111 | .PHONY : depend 112 | 113 | # Convenience name for target. 114 | NetModel/CMakeFiles/NetModellib.dir/rule: 115 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f CMakeFiles/Makefile2 NetModel/CMakeFiles/NetModellib.dir/rule 116 | .PHONY : NetModel/CMakeFiles/NetModellib.dir/rule 117 | 118 | # Convenience name for target. 119 | NetModellib: NetModel/CMakeFiles/NetModellib.dir/rule 120 | 121 | .PHONY : NetModellib 122 | 123 | # fast build rule for target. 124 | NetModellib/fast: 125 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/build 126 | .PHONY : NetModellib/fast 127 | 128 | Base64.o: Base64.cpp.o 129 | 130 | .PHONY : Base64.o 131 | 132 | # target to build an object file 133 | Base64.cpp.o: 134 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/Base64.cpp.o 135 | .PHONY : Base64.cpp.o 136 | 137 | Base64.i: Base64.cpp.i 138 | 139 | .PHONY : Base64.i 140 | 141 | # target to preprocess a source file 142 | Base64.cpp.i: 143 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/Base64.cpp.i 144 | .PHONY : Base64.cpp.i 145 | 146 | Base64.s: Base64.cpp.s 147 | 148 | .PHONY : Base64.s 149 | 150 | # target to generate assembly for a file 151 | Base64.cpp.s: 152 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/Base64.cpp.s 153 | .PHONY : Base64.cpp.s 154 | 155 | Server.o: Server.cpp.o 156 | 157 | .PHONY : Server.o 158 | 159 | # target to build an object file 160 | Server.cpp.o: 161 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/Server.cpp.o 162 | .PHONY : Server.cpp.o 163 | 164 | Server.i: Server.cpp.i 165 | 166 | .PHONY : Server.i 167 | 168 | # target to preprocess a source file 169 | Server.cpp.i: 170 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/Server.cpp.i 171 | .PHONY : Server.cpp.i 172 | 173 | Server.s: Server.cpp.s 174 | 175 | .PHONY : Server.s 176 | 177 | # target to generate assembly for a file 178 | Server.cpp.s: 179 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/Server.cpp.s 180 | .PHONY : Server.cpp.s 181 | 182 | Session.o: Session.cpp.o 183 | 184 | .PHONY : Session.o 185 | 186 | # target to build an object file 187 | Session.cpp.o: 188 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/Session.cpp.o 189 | .PHONY : Session.cpp.o 190 | 191 | Session.i: Session.cpp.i 192 | 193 | .PHONY : Session.i 194 | 195 | # target to preprocess a source file 196 | Session.cpp.i: 197 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/Session.cpp.i 198 | .PHONY : Session.cpp.i 199 | 200 | Session.s: Session.cpp.s 201 | 202 | .PHONY : Session.s 203 | 204 | # target to generate assembly for a file 205 | Session.cpp.s: 206 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/Session.cpp.s 207 | .PHONY : Session.cpp.s 208 | 209 | StreamNode.o: StreamNode.cpp.o 210 | 211 | .PHONY : StreamNode.o 212 | 213 | # target to build an object file 214 | StreamNode.cpp.o: 215 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/StreamNode.cpp.o 216 | .PHONY : StreamNode.cpp.o 217 | 218 | StreamNode.i: StreamNode.cpp.i 219 | 220 | .PHONY : StreamNode.i 221 | 222 | # target to preprocess a source file 223 | StreamNode.cpp.i: 224 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/StreamNode.cpp.i 225 | .PHONY : StreamNode.cpp.i 226 | 227 | StreamNode.s: StreamNode.cpp.s 228 | 229 | .PHONY : StreamNode.s 230 | 231 | # target to generate assembly for a file 232 | StreamNode.cpp.s: 233 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(MAKE) -f NetModel/CMakeFiles/NetModellib.dir/build.make NetModel/CMakeFiles/NetModellib.dir/StreamNode.cpp.s 234 | .PHONY : StreamNode.cpp.s 235 | 236 | # Help Target 237 | help: 238 | @echo "The following are some of the valid targets for this Makefile:" 239 | @echo "... all (the default if no target is provided)" 240 | @echo "... clean" 241 | @echo "... depend" 242 | @echo "... rebuild_cache" 243 | @echo "... NetModellib" 244 | @echo "... edit_cache" 245 | @echo "... Base64.o" 246 | @echo "... Base64.i" 247 | @echo "... Base64.s" 248 | @echo "... Server.o" 249 | @echo "... Server.i" 250 | @echo "... Server.s" 251 | @echo "... Session.o" 252 | @echo "... Session.i" 253 | @echo "... Session.s" 254 | @echo "... StreamNode.o" 255 | @echo "... StreamNode.i" 256 | @echo "... StreamNode.s" 257 | .PHONY : help 258 | 259 | 260 | 261 | #============================================================================= 262 | # Special targets to cleanup operation of make. 263 | 264 | # Special rule to run CMake to check the build system integrity. 265 | # No rule that depends on this can have commands that come from listfiles 266 | # because they might be regenerated. 267 | cmake_check_build_system: 268 | cd /home/secondtonone1/workspace/boostserver/BoostServer && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 269 | .PHONY : cmake_check_build_system 270 | 271 | -------------------------------------------------------------------------------- /BoostServer/NetModel/MsgHandler.h: -------------------------------------------------------------------------------- 1 | #ifndef __MSG_HANDLER_H__ 2 | #define __MSG_HANDLER_H__ 3 | #include 4 | #include 5 | #include "Singleton.h" 6 | #include "../NetModel/Session.h" 7 | typedef boost::function fuctioncallback; 8 | 9 | class MsgHandler 10 | { 11 | public: 12 | MsgHandler(){} 13 | ~MsgHandler(){} 14 | 15 | void RegisterMsg(unsigned int nMsgId, fuctioncallback fcallback) 16 | { 17 | m_mapCallBack[nMsgId] = fcallback; 18 | } 19 | 20 | void HandleMsg(const unsigned int &nMsgId, const std::string &strData, const weak_session_ptr &pSession) 21 | { 22 | auto iterCallBack = m_mapCallBack.find(nMsgId); 23 | if(iterCallBack == m_mapCallBack.end()) 24 | return; 25 | iterCallBack->second(nMsgId,strData,pSession); 26 | } 27 | private: 28 | boost::unordered_map m_mapCallBack; 29 | 30 | }; 31 | typedef Singleton MsgHandlerInst; 32 | 33 | #endif//__MSG_HANDLER_H__ -------------------------------------------------------------------------------- /BoostServer/NetModel/Server.cpp: -------------------------------------------------------------------------------- 1 | #include "Server.h" 2 | #include 3 | #include "Session.h" 4 | #include 5 | using namespace std; 6 | 7 | BoostServer::BoostServer(boost::asio::io_service &_ioService, boost::asio::ip::tcp::endpoint &_endpoint) 8 | : m_ioservice(_ioService), m_acceptor(_ioService, _endpoint),m_timer(_ioService,boost::posix_time::seconds(10)) { 9 | m_timer.async_wait(boost::bind(&BoostServer::handleExpConn,this)); 10 | try{ 11 | m_pEmfile = fopen("./NetModel/emfile.txt","r"); 12 | } 13 | catch (...) 14 | { 15 | cout << "open file exception"<socket(), 30 | boost::bind(&BoostServer::accept_handler, this, new_chat_session, 31 | boost::asio::placeholders::error)); 32 | } 33 | catch(...){ 34 | cout << "malloc not enough" <socket().remote_endpoint().address().to_string()<= MAXCLIENTNUM-1) 49 | { 50 | start(); 51 | return; 52 | } 53 | 54 | if(m_pEmfile == NULL) 55 | { 56 | _chatSession->socket().close(); 57 | m_pEmfile = fopen("./NetModel/emfile.txt","r"); 58 | if(m_pEmfile) 59 | start(); 60 | return; 61 | } 62 | _chatSession->start(); 63 | m_listweaksession.push_back(_chatSession); 64 | start(); 65 | } 66 | catch (...) { 67 | cout << "accept exception"<expired()) 100 | { 101 | iterWeakSession = m_listweaksession.erase(iterWeakSession); 102 | continue; 103 | } 104 | //判断心跳是否超时 105 | if(iterWeakSession->lock()->getLiveTime() + boost::posix_time::seconds(10) < nowtime) 106 | { 107 | //测试先注释,实际开发需要打开,防止死掉的异常连接占用资源 108 | //iterWeakSession->lock()->socket().close(); 109 | iterWeakSession++; 110 | continue; 111 | } 112 | iterWeakSession++; 113 | } 114 | m_timer.expires_from_now(boost::posix_time::seconds(15)); 115 | m_timer.async_wait(boost::bind(&BoostServer::handleExpConn,this)); 116 | } 117 | 118 | 119 | -------------------------------------------------------------------------------- /BoostServer/NetModel/Server.h: -------------------------------------------------------------------------------- 1 | #ifndef __BOOST_SERVER_H__ 2 | #define __BOOST_SERVER_H__ 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include "Session.h" 8 | #define MAXCLIENTNUM 4096 9 | class BoostServer { 10 | private: 11 | // 保存会话指针 12 | 13 | public: 14 | BoostServer(boost::asio::io_service & ioService, boost::asio::ip::tcp::endpoint & endpoint); 15 | virtual ~BoostServer(void); 16 | // 服务器开始监听 17 | void start(void); 18 | // ioservice run 19 | void run(void); 20 | private: 21 | // 新连接回调函数 22 | void accept_handler(session_ptr chatSession, const boost::system::error_code& errorcode); 23 | //处理异常 24 | void handleExpConn(); 25 | //处理accept错误 26 | void handleAcceptError(session_ptr _chatSession); 27 | private: 28 | boost::asio::io_service &m_ioservice; 29 | boost::asio::ip::tcp::acceptor m_acceptor; 30 | boost::asio::deadline_timer m_timer; 31 | std::list m_listweaksession; 32 | FILE* m_pEmfile; 33 | }; 34 | 35 | 36 | #endif //__BOOST_SERVER_H__ 37 | -------------------------------------------------------------------------------- /BoostServer/NetModel/Session.h: -------------------------------------------------------------------------------- 1 | #ifndef __BOOST_SESSION_H__ 2 | #define __BOOST_SESSION_H__ 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include "StreamNode.h" 9 | 10 | enum TCPSTATE{ 11 | TCPSUCCESS = 0,//TCP处理完全 12 | TCPHEADLESS, //TCP头部未收全 13 | TCPHEADERROR, //TCP头部错误 14 | TCPDATALESS, //TCP数据域未收全 15 | }; 16 | 17 | enum WEBSTATE{ 18 | WEBHANDSHAKESUCCESS = 0, // 握手成功 19 | WEBHANDSHAKELESS , //握手信息未收全 20 | WEBHANDSHAKEFAIL, //握手失败 21 | WEBSTEPSUCCESS,//分步处理成功 22 | WEBSOCKETNONE, //websocket 数据为空 23 | WEBSOCKETFIN0, //websocket fin标记位为0 24 | WEBSOCKETFINISHBIT, //websocket finishbit收全 25 | WEBSOCKETLENANALY,//websocket len 分析完 26 | WEBSOCKETLEN, //websocket len 字段接收完全 27 | WEBMASKLESS,//websocket mask 未接受全 28 | WEBSOCKETDATALESS,//websocket 数据粘包未收全 29 | WEBSOCKETSUCCESS, //websocket 处理成功 30 | WEBSOCKETCLOSE,//websocket close 31 | }; 32 | 33 | 34 | // 会话类 35 | class BoostSession : public boost::enable_shared_from_this 36 | { 37 | public: 38 | // 39 | typedef boost::shared_ptr streamnode_ptr; 40 | BoostSession(boost::asio::io_service& _ioService); 41 | virtual ~BoostSession(void); 42 | 43 | void start(void); 44 | 45 | // socket 实例 46 | boost::asio::ip::tcp::socket& socket(void); 47 | const boost::posix_time::ptime &getLiveTime(); 48 | void updateLive(); 49 | void write_msg(const char * msg, unsigned int nMsgId, unsigned int nLen); 50 | void write_webmsg(const char* msg, unsigned int nLen); 51 | void responclient(char respdata[],int datalen); 52 | private: 53 | // 完成数据传输后触发的收尾工作 54 | bool done_handler(const boost::system::error_code& _error); 55 | // 读取成功后触发的函数 56 | void read_handler(const boost::system::error_code& _error, size_t _readSize); 57 | // 写入完成后触发的函数 58 | void write_handler(const boost::system::error_code& _error, size_t _writeSize); 59 | void async_send(); 60 | unsigned int getReadLen(); 61 | bool readComplete(unsigned int nLen); 62 | //std::string getReadData(int nDataLen = 0); 63 | unsigned int getReadData(char* pData, int nRead); 64 | bool getAvailableNode(streamnode_ptr & nodeptr); 65 | bool addAvailableNode(const streamnode_ptr & nodeptr); 66 | bool unserializeHead(); 67 | bool serializeHead(char * pData, unsigned short nMsgId, unsigned short nMsgLen); 68 | int handleTcp(); 69 | int handleWeb(); 70 | int handleHandShake(); 71 | //确定消息类型 72 | void confirmType(); 73 | //处理第一个字节 74 | int handleFirstByte(char * msgData, int & index, int & nRemain); 75 | //处理第二个字节 76 | int handleSecondByte(char * msgData, int & index, int & nRemain); 77 | //处理长度数据 78 | int handleLenByte(char * msgData, int & index, int & nRemain); 79 | //处理maskbit 80 | int handleMaskBit(char * msgData, int & index, int & nRemain); 81 | //处理数据 82 | int handleWebData(char * msgData, int & index, int & nRemain); 83 | void clearWebFlags(); 84 | void saveCurData(); 85 | void clearBaseData(); 86 | private: 87 | // 临时信息缓冲区 88 | char m_cData[BUFFERSIZE]; 89 | std::string currentMsg_; 90 | // 数据总数量 91 | int sumSize_; 92 | // 单个数据包大小 93 | unsigned int maxSize_; 94 | // socket句柄 95 | boost::asio::ip::tcp::socket m_socket; 96 | // 读取数据缓冲队列 97 | std::deque m_pInPutQue; 98 | // 发送数据缓冲队列 99 | std::deque m_pOutPutQue; 100 | //备用队列 101 | std::deque m_pAvailableQue; 102 | //是否发送完 103 | bool m_bPendingSend; 104 | //是否接受完 105 | bool m_bPendingRecv; 106 | //心跳时间 107 | boost::posix_time::ptime m_nAliveTime; 108 | //消息id 109 | unsigned short m_nMsgId; 110 | //消息长度 111 | unsigned short m_nMsgLen; 112 | //是否是websocket通信 113 | bool m_bWebSocket; 114 | //是否确认通信类型tcp or websocket 115 | bool m_bTypeConfirm; 116 | //是否已经进行握手 117 | bool m_bWebHandShake; 118 | 119 | int m_nFinishbit;//0有后续包,1对端发送完全 120 | char m_cWebData[BUFFERSIZE]; 121 | int m_nWebState; 122 | int m_nWebLen; 123 | int m_nMaskBit; 124 | char m_cMaskKey[4]; 125 | int m_nLenPend; //长度处理进度 126 | int m_nMaskPend; //mask 处理进度 127 | int m_nWebDataPend; //webdata 处理进度 128 | char m_cLenArray[BUFFERSIZE]; 129 | char m_cCompleteArray[BUFFERSIZE*4]; 130 | int m_nCompleteLen; 131 | }; 132 | 133 | typedef boost::shared_ptr session_ptr; 134 | typedef boost::weak_ptr weak_session_ptr; 135 | 136 | #endif //__BOOST_SESSION_H__ -------------------------------------------------------------------------------- /BoostServer/NetModel/Singleton.h: -------------------------------------------------------------------------------- 1 | #ifndef __MSG_SINGLETON_H__ 2 | #define __MSG_SINGLETON_H__ 3 | #include 4 | #include 5 | 6 | template 7 | class Singleton 8 | { 9 | public: 10 | static boost::shared_ptr instance() 11 | { 12 | if (_instance == 0) 13 | _instance = boost::shared_ptr(new T()); 14 | return _instance; 15 | } 16 | 17 | ~Singleton() 18 | { 19 | std::cout << "Singleton::~Singleton()" << std::endl; 20 | } 21 | protected: 22 | Singleton(const Singleton&){} 23 | Singleton() 24 | { 25 | std::cout << "Singleton::Singleton()" << std::endl; 26 | } 27 | private: 28 | Singleton& operator=(const Singleton&){return *this;} 29 | static boost::shared_ptr _instance; 30 | }; 31 | 32 | template 33 | boost::shared_ptr Singleton::_instance = NULL; 34 | 35 | #endif//__MSG_SINGLETON_H__ 36 | -------------------------------------------------------------------------------- /BoostServer/NetModel/StreamNode.cpp: -------------------------------------------------------------------------------- 1 | #include "StreamNode.h" 2 | 3 | StreamNode::StreamNode(char * msg, int nLen) 4 | { 5 | if(nLen > BUFFERSIZE) 6 | nLen = BUFFERSIZE; 7 | m_nLen = nLen; 8 | m_nOffSet = 0; 9 | m_pData = new char[BUFFERSIZE]; 10 | memcpy(m_pData,msg,m_nLen); 11 | } 12 | 13 | StreamNode::~StreamNode() 14 | { 15 | if(m_pData) 16 | { 17 | delete []m_pData; 18 | m_pData = NULL; 19 | } 20 | m_nOffSet = 0; 21 | m_nLen = 0; 22 | } 23 | 24 | std::string StreamNode::getRemainData() 25 | { 26 | std::string remaindata(getMsgData()+getOffSet(),getRemain()); 27 | return remaindata; 28 | } 29 | 30 | char * StreamNode::getMsgData(void) 31 | { 32 | return m_pData; 33 | } 34 | 35 | int StreamNode::getRemain() 36 | { 37 | if(m_nLen < m_nOffSet) 38 | m_nLen = m_nOffSet; 39 | return m_nLen - m_nOffSet; 40 | } 41 | 42 | int StreamNode::getOffSet() 43 | { 44 | if(m_nOffSet>m_nLen) 45 | m_nOffSet = m_nLen; 46 | return m_nOffSet; 47 | } 48 | 49 | int StreamNode::getLen() 50 | { 51 | return m_nLen; 52 | } 53 | 54 | void StreamNode::resetOffset(int offsetAdd) 55 | { 56 | m_nOffSet+=offsetAdd; 57 | if(m_nOffSet > m_nLen) 58 | m_nOffSet = m_nLen; 59 | } 60 | 61 | void StreamNode::cleardata() 62 | { 63 | memset(m_pData,0,BUFFERSIZE); 64 | m_nLen = 0; 65 | m_nOffSet = 0; 66 | } 67 | 68 | void StreamNode::copydata(char * msg, int nLen) 69 | { 70 | if(nLen > BUFFERSIZE) 71 | nLen = BUFFERSIZE; 72 | assert(m_pData); 73 | m_nLen = nLen; 74 | m_nOffSet = 0; 75 | memcpy(m_pData,msg,m_nLen); 76 | } 77 | 78 | boost::shared_ptr StreamNode::getself() 79 | { 80 | return shared_from_this(); 81 | } 82 | 83 | 84 | -------------------------------------------------------------------------------- /BoostServer/NetModel/StreamNode.h: -------------------------------------------------------------------------------- 1 | #ifndef __STREAM_NODE_H__ 2 | #define __STREAM_NODE_H__ 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #define BUFFERSIZE 2048 9 | #define MAXAVAILABLE 50 10 | #define MAXMSGID 2048 11 | #define HEADSIZE 4 // msgid 2 �ֽ� + msglen 2 �ֽ� 12 | 13 | class StreamNode:public boost::enable_shared_from_this 14 | { 15 | public: 16 | StreamNode(char * msg, int nLen); 17 | ~StreamNode(); 18 | char * getMsgData(void); 19 | int getRemain(); 20 | int getOffSet(); 21 | void resetOffset(int offsetAdd); 22 | void cleardata(); 23 | void copydata(char * msg, int nLen); 24 | boost::shared_ptr getself(); 25 | std::string getRemainData(); 26 | int getLen(); 27 | private: 28 | 29 | char* m_pData; 30 | int m_nLen; 31 | int m_nOffSet; 32 | }; 33 | 34 | #endif //__STREAM_NODE_H__ -------------------------------------------------------------------------------- /BoostServer/NetModel/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: /home/secondtonone1/workspace/boostserver/BoostServer/NetModel 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "/usr/local") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Install shared libraries without execute permission? 31 | if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) 32 | set(CMAKE_INSTALL_SO_NO_EXE "1") 33 | endif() 34 | 35 | # Is this installation the result of a crosscompile? 36 | if(NOT DEFINED CMAKE_CROSSCOMPILING) 37 | set(CMAKE_CROSSCOMPILING "FALSE") 38 | endif() 39 | 40 | -------------------------------------------------------------------------------- /BoostServer/NetModel/emfile.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/secondtonone1/boostserver/236a2dfe40eba0e429f29fb25578c114fa6f648a/BoostServer/NetModel/emfile.txt -------------------------------------------------------------------------------- /BoostServer/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | CONSOLE APPLICATION : ConsoleApplication1 Project Overview 3 | ======================================================================== 4 | 5 | AppWizard has created this ConsoleApplication1 application for you. 6 | 7 | This file contains a summary of what you will find in each of the files that 8 | make up your ConsoleApplication1 application. 9 | 10 | 11 | ConsoleApplication1.vcxproj 12 | This is the main project file for VC++ projects generated using an Application Wizard. 13 | It contains information about the version of Visual C++ that generated the file, and 14 | information about the platforms, configurations, and project features selected with the 15 | Application Wizard. 16 | 17 | ConsoleApplication1.vcxproj.filters 18 | This is the filters file for VC++ projects generated using an Application Wizard. 19 | It contains information about the association between the files in your project 20 | and the filters. This association is used in the IDE to show grouping of files with 21 | similar extensions under a specific node (for e.g. ".cpp" files are associated with the 22 | "Source Files" filter). 23 | 24 | ConsoleApplication1.cpp 25 | This is the main application source file. 26 | 27 | ///////////////////////////////////////////////////////////////////////////// 28 | Other standard files: 29 | 30 | StdAfx.h, StdAfx.cpp 31 | These files are used to build a precompiled header (PCH) file 32 | named ConsoleApplication1.pch and a precompiled types file named StdAfx.obj. 33 | 34 | ///////////////////////////////////////////////////////////////////////////// 35 | Other notes: 36 | 37 | AppWizard uses "TODO:" comments to indicate parts of the source code you 38 | should add to or customize. 39 | 40 | ///////////////////////////////////////////////////////////////////////////// 41 | -------------------------------------------------------------------------------- /BoostServer/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: /home/secondtonone1/workspace/boostserver/BoostServer 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "/usr/local") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Install shared libraries without execute permission? 31 | if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) 32 | set(CMAKE_INSTALL_SO_NO_EXE "1") 33 | endif() 34 | 35 | # Is this installation the result of a crosscompile? 36 | if(NOT DEFINED CMAKE_CROSSCOMPILING) 37 | set(CMAKE_CROSSCOMPILING "FALSE") 38 | endif() 39 | 40 | if(NOT CMAKE_INSTALL_LOCAL_ONLY) 41 | # Include the install script for each subdirectory. 42 | include("/home/secondtonone1/workspace/boostserver/BoostServer/NetModel/cmake_install.cmake") 43 | include("/home/secondtonone1/workspace/boostserver/BoostServer/Logic/cmake_install.cmake") 44 | 45 | endif() 46 | 47 | if(CMAKE_INSTALL_COMPONENT) 48 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 49 | else() 50 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 51 | endif() 52 | 53 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 54 | "${CMAKE_INSTALL_MANIFEST_FILES}") 55 | file(WRITE "/home/secondtonone1/workspace/boostserver/BoostServer/${CMAKE_INSTALL_MANIFEST}" 56 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 57 | -------------------------------------------------------------------------------- /BoostServer/main.cpp: -------------------------------------------------------------------------------- 1 | // ConsoleApplication1.cpp : Defines the entry point for the console application. 2 | // 3 | 4 | #include 5 | #include 6 | #include 7 | #ifdef __linux__ 8 | #include 9 | #include 10 | #include 11 | #include 12 | #endif //__linux__ 13 | #include 14 | #include 15 | #include "./NetModel/Server.h" 16 | #include "./Logic/LogicSystem.h" 17 | 18 | int main(void) { 19 | try { 20 | std::cout << "server start." << std::endl; 21 | 22 | #ifdef __linux__ 23 | struct sigaction sa; 24 | memset(&sa, 0, sizeof (sa)); 25 | sa.sa_handler = SIG_IGN; 26 | if (sigaction(SIGPIPE, &sa, NULL) < 0) 27 | { 28 | std::cout << "Error ignoring SIGPIPE!"<("config.tcpport"); 36 | LogicSystem::instance()->startup(); 37 | boost::asio::ip::tcp::endpoint endpotion(boost::asio::ip::tcp::v4(),sport); 38 | BoostServer server(ios, endpotion); 39 | server.run(); 40 | } 41 | catch (std::exception& _e) { 42 | std::cout << _e.what() << std::endl; 43 | } 44 | std::cout << "server end." << std::endl; 45 | getchar(); 46 | return 0; 47 | } 48 | 49 | 50 | -------------------------------------------------------------------------------- /Debug/BoostServer.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/secondtonone1/boostserver/236a2dfe40eba0e429f29fb25578c114fa6f648a/Debug/BoostServer.exe -------------------------------------------------------------------------------- /Debug/BoostServer.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/secondtonone1/boostserver/236a2dfe40eba0e429f29fb25578c114fa6f648a/Debug/BoostServer.ilk -------------------------------------------------------------------------------- /Debug/BoostServer.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/secondtonone1/boostserver/236a2dfe40eba0e429f29fb25578c114fa6f648a/Debug/BoostServer.pdb -------------------------------------------------------------------------------- /Debug/ConsoleApplication1.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/secondtonone1/boostserver/236a2dfe40eba0e429f29fb25578c114fa6f648a/Debug/ConsoleApplication1.exe -------------------------------------------------------------------------------- /Debug/ConsoleApplication1.ilk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/secondtonone1/boostserver/236a2dfe40eba0e429f29fb25578c114fa6f648a/Debug/ConsoleApplication1.ilk -------------------------------------------------------------------------------- /Debug/ConsoleApplication1.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/secondtonone1/boostserver/236a2dfe40eba0e429f29fb25578c114fa6f648a/Debug/ConsoleApplication1.pdb -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # boostserver 2 | ## 基于boost::asio 搭建的服务器 3 | ### 目前完成的功能 4 | 1. tlv协议 HEAD大小目前为4,前两个字节为消息id,接着两个字节为数据域消息长度。HEAD为小端存储,消息格式为MSGID+MSGLEN+DATA。 5 | 2. 粘包处理 6 | 3. 异步收发数据 7 | 4. 心跳检测 8 | 5. 连接管理和异常处理 9 | 6. 回调函数封装和注册 10 | 7. 增加最大连接数限制,避免emfile,linux下可根据进程允许打开的最多描述符修改此数值。 11 | 8. 增加描述符超过进程上限处理,即emfile错误处理。 12 | 9. 实现websocket,和现有tcp 兼容。 13 | 14 | ### 配合客户端 15 | 配合客户端示例查看 [https://github.com/secondtonone1/boostclient](https://github.com/secondtonone1/boostclient) 16 | 17 | ### 接下来要实现 18 | 1. 消息体序列化,配合msgpack库 19 | 2. python 自动化生成cpp 20 | 3. 消息加密 21 | 4. mongodb接口设计和实现 22 | 23 | 24 | 个人公众号 25 | 26 | ![https://github.com/secondtonone1/blogsbackup/blob/master/blogs/source/_posts/golang01/wxgzh.jpg](https://github.com/secondtonone1/blogsbackup/blob/master/blogs/source/_posts/golang01/wxgzh.jpg) 27 | -------------------------------------------------------------------------------- /ServerBoost.sdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/secondtonone1/boostserver/236a2dfe40eba0e429f29fb25578c114fa6f648a/ServerBoost.sdf -------------------------------------------------------------------------------- /ServerBoost.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BoostServer", "BoostServer\BoostServer.vcxproj", "{1C5B029B-A9EF-41E1-8139-A0B66E9E38CE}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {1C5B029B-A9EF-41E1-8139-A0B66E9E38CE}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {1C5B029B-A9EF-41E1-8139-A0B66E9E38CE}.Debug|Win32.Build.0 = Debug|Win32 14 | {1C5B029B-A9EF-41E1-8139-A0B66E9E38CE}.Release|Win32.ActiveCfg = Release|Win32 15 | {1C5B029B-A9EF-41E1-8139-A0B66E9E38CE}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /ServerBoost.v11.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/secondtonone1/boostserver/236a2dfe40eba0e429f29fb25578c114fa6f648a/ServerBoost.v11.suo --------------------------------------------------------------------------------