forked fromglynos/cpp-netlib
- Notifications
You must be signed in to change notification settings - Fork425
Restructure dirs#181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Restructure dirs#181
Changes fromall commits
Commits
Show all changes
5 commits Select commitHold shift + click to select a range
c246806 Refactored thread_pool from the utils sub-directory (and namespace) i…
glynos1d158ca Removed checks for c++0x as they are no longer used.
glynosfeecbc2 Moved http subdirectory; includes version.hpp and constants.
glynos65b99b8 Removed http code from old subdirectory.
glynos6f51e04 Moved mime to a separate subdirectory.
glynosFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
12 changes: 6 additions & 6 deletionsCMakeLists.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletionsconcurrency/CMakeLists.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # Copyright (c) Glyn Matthews 2012. | ||
| # Distributed under the Boost Software License, Version 1.0. | ||
| # (See accompanying file LICENSE_1_0.txt or copy at | ||
| # http://www.boost.org/LICENSE_1_0.txt) | ||
| add_subdirectory(src) | ||
| if(CPP-NETLIB_BUILD_TESTS) | ||
| enable_testing() | ||
| add_subdirectory(test) | ||
| endif(CPP-NETLIB_BUILD_TESTS) |
26 changes: 26 additions & 0 deletionsconcurrency/src/CMakeLists.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Copyright (c) Glyn Matthews 2012. | ||
| # Distributed under the Boost Software License, Version 1.0. | ||
| # (See accompanying file LICENSE_1_0.txt or copy at | ||
| # http://www.boost.org/LICENSE_1_0.txt) | ||
| include_directories(${CPP-NETLIB_SOURCE_DIR}/concurrency/src) | ||
| if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU) | ||
| set(CPP-NETLIB_CXXFLAGS "-Wall -std=c++11") | ||
| elseif (${CMAKE_CXX_COMPILER_ID} MATCHES Clang) | ||
| CHECK_CXX_COMPILER_FLAG(-std=c++11 HAVE_STD11) | ||
| set(CPP-NETLIB_CXXFLAGS "-Wall -std=c++11 -stdlib=libc++") | ||
| set(CPP-NETLIB_CXXFLAGS "-Wall -std=c++11 -stdlib=libc++") | ||
| endif() | ||
| set(CPP-NETLIB_CONCURRENCY_SRCS thread_pool.cpp) | ||
| add_library(cppnetlib-concurrency ${CPP-NETLIB_CONCURRENCY_SRCS}) | ||
| foreach (src_file ${CPP-NETLIB_CONCURRENCY_SRCS}) | ||
| if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU) | ||
| set_source_files_properties(${src_file} | ||
| PROPERTIES COMPILE_FLAGS ${CPP-NETLIB_CXXFLAGS}) | ||
| elseif (${CMAKE_CXX_COMPILER_ID} MATCHES Clang) | ||
| set_source_files_properties(${src_file} | ||
| PROPERTIES COMPILE_FLAGS ${CPP-NETLIB_CXXFLAGS}) | ||
| endif() | ||
| endforeach(src_file) |
11 changes: 6 additions & 5 deletionsinclude/network/utils/thread_pool.hpp → ...y/src/network/concurrency/thread_pool.hpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
13 changes: 7 additions & 6 deletionsinclude/network/utils/thread_pool.ipp → ...y/src/network/concurrency/thread_pool.ipp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletionsconcurrency/src/network/utils/thread_pool.hpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| // Copyright (c) Glyn Matthews 2012. | ||
| // Distributed under the Boost Software License, Version 1.0. | ||
| // (See accompanying file LICENSE_1_0.txt or copy at | ||
| // http://www.boost.org/LICENSE_1_0.txt) | ||
| #ifndef __NETWORK_UTILS_THREAD_POOL_INC__ | ||
| #define __NETWORK_UTILS_THREAD_POOL_INC__ | ||
| #include <network/concurrency/thread_pool.hpp> | ||
| namespace network { | ||
| namespace utils { | ||
| typedef ::network::concurrency::thread_pool thread_pool; | ||
| } // namespace utils | ||
| } // namespace network | ||
| #endif // __NETWORK_UTILS_THREAD_POOL_INC__ |
3 changes: 2 additions & 1 deletionlibs/network/src/utils/thread_pool.cpp → concurrency/src/thread_pool.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,8 @@ | ||
| // Copyright 2011 Dean Michael Berris <dberris@google.com>. | ||
| // Copyright 2011 Google, Inc. | ||
| // Copyright (c) Glyn Matthews 2012. | ||
| // Distributed under the Boost Software License, Version 1.0. | ||
| // (See accompanying file LICENSE_1_0.txt or copy at | ||
| // http://www.boost.org/LICENSE_1_0.txt) | ||
| #include <network/concurrency/thread_pool.ipp> |
25 changes: 25 additions & 0 deletionsconcurrency/test/CMakeLists.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # Copyright (c) Glyn Matthews 2012. | ||
| # Distributed under the Boost Software License, Version 1.0. | ||
| # (See accompanying file LICENSE_1_0.txt or copy at | ||
| # http://www.boost.org/LICENSE_1_0.txt) | ||
| include_directories(${CPP-NETLIB_SOURCE_DIR}/concurrency/src) | ||
| if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU) | ||
| set(CPP-NETLIB_CXXFLAGS "-Wall -std=c++11") | ||
| elseif (${CMAKE_CXX_COMPILER_ID} MATCHES Clang) | ||
| CHECK_CXX_COMPILER_FLAG(-std=c++11 HAVE_STD11) | ||
| set(CPP-NETLIB_CXXFLAGS "-Wall -std=c++11 -stdlib=libc++") | ||
| set(CPP-NETLIB_CXXFLAGS "-Wall -std=c++11 -stdlib=libc++") | ||
| endif() | ||
| set_source_files_properties(thread_pool_test.cpp | ||
| PROPERTIES COMPILE_FLAGS "-Wall") | ||
| add_executable(cpp-netlib-thread_pool_test thread_pool_test.cpp) | ||
| target_link_libraries(cpp-netlib-thread_pool_test | ||
| cppnetlib-concurrency | ||
| ${Boost_LIBRARIES} | ||
| ${CMAKE_THREAD_LIBS_INIT}) | ||
| set_target_properties(cpp-netlib-thread_pool_test | ||
| PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/tests) | ||
| add_test(cpp-netlib-thread_pool_test ${CPP-NETLIB_BINARY_DIR}/tests/cpp-netlib-thread_pool_test) |
43 changes: 22 additions & 21 deletionslibs/network/test/utils_thread_pool.cpp → concurrency/test/thread_pool_test.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletionshttp/CMakeLists.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # Copyright (c) Glyn Matthews 2012. | ||
| # Distributed under the Boost Software License, Version 1.0. | ||
| # (See accompanying file LICENSE_1_0.txt or copy at | ||
| # http://www.boost.org/LICENSE_1_0.txt) | ||
| add_subdirectory(src) | ||
| if(CPP-NETLIB_BUILD_TESTS) | ||
| enable_testing() | ||
| add_subdirectory(test) | ||
| endif(CPP-NETLIB_BUILD_TESTS) |
12 changes: 0 additions & 12 deletionslibs/network/src/CMakeLists.txt → http/src/CMakeLists.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
40 changes: 40 additions & 0 deletionshttp/src/network/constants.hpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| #ifndef NETWORK_CONSTANTS_HPP_20100808 | ||
| #define NETWORK_CONSTANTS_HPP_20100808 | ||
| // Copyright 2010 (C) Dean Michael Berris | ||
| // Copyright 2012 Google, Inc. | ||
| // Distributed under the Boost Software License, Version 1.0. | ||
| // (See accompanying file LICENSE_1_0.txt or copy at | ||
| // http://www.boost.org/LICENSE_1_0.txt) | ||
| namespace network { | ||
| struct constants { | ||
| static char const * crlf(); | ||
| static char const * dot(); | ||
| static char dot_char(); | ||
| static char const * http_slash(); | ||
| static char const * space(); | ||
| static char space_char(); | ||
| static char const * slash(); | ||
| static char slash_char(); | ||
| static char const * host(); | ||
| static char const * colon(); | ||
| static char colon_char(); | ||
| static char const * accept(); | ||
| static char const * default_accept_mime(); | ||
| static char const * accept_encoding(); | ||
| static char const * default_accept_encoding(); | ||
| static char const * user_agent(); | ||
| static char const * default_user_agent(); | ||
| static char const * cpp_netlib_slash(); | ||
| static char question_mark_char(); | ||
| static char hash_char(); | ||
| static char const * connection(); | ||
| static char const * close(); | ||
| static char const * https(); | ||
| }; | ||
| } // namespace network | ||
| #endif // NETWORK_CONSTANTS_HPP_20100808 |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.