-
Notifications
You must be signed in to change notification settings - Fork 560
Support async networking #63
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
73d9d9d
Setup dispatcher interface
rnburn 9685fb2
Start libevent implementation
rnburn d6b175f
Add EventBase class
rnburn 2b86e11
Integrate EventBase
rnburn 8f387dc
Add Event
rnburn bd57639
Add Timer
rnburn 3448df0
Add Timer test
rnburn 2d2ea8e
Add FileEvent
rnburn dc35d6e
Add Exit test
rnburn fb83a8d
Integrate libevent with cmake
rnburn 2d40011
Drop kTimeout
rnburn cabab7c
Integrat libevent with CI
rnburn d76fd24
Add commenting
rnburn fda54ee
Reformat
rnburn f3bb9b9
Add cmake depedency to bazel
rnburn e5596d8
Fix cmake toolchain
rnburn fe208d1
Fix cmake toolchain
rnburn 3ac2aa5
Fix ci issues
rnburn 919d396
Put back removed file
rnburn 03eb077
Fix bazel build on windows
rnburn 7d343ce
Fix bazel build
rnburn 7bbbe29
Fix windows library name
rnburn 11f0e46
Fix windows bazel build
rnburn 515d01c
Fix windows library name
rnburn 18791c1
Fix osx build
rnburn 68ce934
Tweak test parameters
rnburn 72fd4df
Make test less flaky
rnburn 30cff79
Fix ci
rnburn e79b5f6
Reformat
rnburn 9b62085
Fix windows ci
rnburn c120b8d
Fix comments
rnburn 61b6b94
Separate out IoDispatcher
rnburn 29a6b2f
Fix cmake build
rnburn 7b59314
Fix formatting
rnburn 23009af
Drop unused header
rnburn d14c11f
Renaming
rnburn 0cef1d8
Work on async_timer
rnburn 8c2b945
Fill in async timer
rnburn 2f0cf96
Fill out async timer
rnburn 76683b0
Reformat
rnburn 53bcda4
Add async timer tests
rnburn 4b162e4
Fix for gcc-4.8
rnburn 3212ed4
Add test coverage
rnburn 8f358c9
Add commenting
rnburn e086e77
Add more test coverage
rnburn ea0e87c
Add commenting
rnburn 6234ee6
Update GH Actions
faf2973
Fix CI
1de581b
Build examples only with SDK
2cbf66c
Add libevent
8248ddd
Fix WITH_SDK flag
708f7b0
Increase timeout to avoid flaky tests
cc34479
Fix Windows dependencies
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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,33 @@ | ||
| load("@rules_foreign_cc//tools/build_defs:cmake.bzl", "cmake_external") | ||
|
|
||
| filegroup( | ||
| name = "srcs", | ||
| srcs = glob(["**"]), | ||
| ) | ||
|
|
||
| cmake_external( | ||
| name = "libevent", | ||
| cache_entries = { | ||
| "CMAKE_BUILD_TYPE": "Release", | ||
| "CMAKE_POSITION_INDEPENDENT_CODE": "on", | ||
| "BUILD_SHARED_LIBS": "off", | ||
| "BUILD_STATIC_LIBS": "on", | ||
| "EVENT__DISABLE_OPENSSL": "on", | ||
| "EVENT__DISABLE_REGRESS": "on", | ||
| "EVENT__DISABLE_TESTS": "on", | ||
| }, | ||
| generate_crosstool_file = select({ | ||
| "@io_opentelemetry_cpp//bazel:windows": True, | ||
| "//conditions:default": None, | ||
| }), | ||
| lib_source = ":srcs", | ||
| make_commands = select({ | ||
| "@io_opentelemetry_cpp//bazel:windows": ["MSBuild.exe INSTALL.vcxproj"], | ||
| "//conditions:default": None, | ||
| }), | ||
| static_libraries = select({ | ||
| "@io_opentelemetry_cpp//bazel:windows": ["event.lib"], | ||
| "//conditions:default": ["libevent.a"], | ||
| }), | ||
| visibility = ["//visibility:public"], | ||
| ) |
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
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
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
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
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,7 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -e | ||
|
|
||
| apt-get install --no-install-recommends --no-install-suggests -y \ | ||
| libevent-dev | ||
|
|
||
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,5 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -e | ||
|
|
||
| brew install cmake |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.