-
Notifications
You must be signed in to change notification settings - Fork 216
Add CMakeLists.txt for cpp/Ice demos #257
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
906b0f6
Add CMakeLists.txt for cpp/Ice demos
externl 8249c59
Remove Ice/async
externl 66d2fad
Fixes
externl 067bc1f
testing
externl c398597
testing
externl 149d70d
test
externl 13f6bc6
test
externl c8779ff
fix
externl 97e472f
Update cpp/Ice/invoke/CMakeLists.txt
externl 2b2a454
Merge greeterAsync into greeter (C++) (#256)
externl df7a903
fixes
externl 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| cmake_minimum_required(VERSION 3.16) | ||
|
|
||
| project(bidir CXX) | ||
|
|
||
| include(../../cmake/common.cmake) | ||
|
|
||
| add_executable(client Client.cpp Callback.ice) | ||
| slice2cpp_generate(client) | ||
| target_link_libraries(client Ice::Ice) | ||
|
|
||
| add_executable(server Server.cpp CallbackI.cpp CallbackI.h Callback.ice) | ||
| slice2cpp_generate(server) | ||
| target_link_libraries(server Ice::Ice) |
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,18 +1,43 @@ | ||
| # Bidirectional Connections | ||
|
|
||
| This demo shows how to use [bidirectional connections][1] for callbacks. | ||
| This is typically used if the server cannot open a connection to the | ||
| client to send callbacks, for example, because firewalls block | ||
| incoming connections to the client. | ||
|
|
||
| To build the demo run: | ||
|
|
||
| ```shell | ||
| cmake -B build | ||
| cmake --build build --config Release | ||
| ``` | ||
|
|
||
| To run the demo, first start the server: | ||
|
|
||
| **Linux/macOS:** | ||
|
|
||
| ```shell | ||
| ./build/server | ||
| ``` | ||
| server | ||
|
|
||
| **Windows:** | ||
|
|
||
| ```shell | ||
| build\Release\server | ||
| ``` | ||
|
|
||
| In a separate window, start the client: | ||
|
|
||
| **Linux/macOS:** | ||
|
|
||
| ```shell | ||
| ./build/client | ||
| ``` | ||
| client | ||
|
|
||
| **Windows:** | ||
|
|
||
| ```shell | ||
| build\Release\client | ||
| ``` | ||
|
|
||
| [1]: https://doc.zeroc.com/ice/3.7/client-server-features/connection-management/bidirectional-connections |
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,13 @@ | ||
| cmake_minimum_required(VERSION 3.16) | ||
|
|
||
| project(callback CXX) | ||
|
|
||
| include(../../cmake/common.cmake) | ||
|
|
||
| add_executable(client Client.cpp Callback.ice) | ||
| slice2cpp_generate(client) | ||
| target_link_libraries(client Ice::Ice) | ||
|
|
||
| add_executable(server Server.cpp CallbackSenderI.cpp CallbackSenderI.h Callback.ice) | ||
| slice2cpp_generate(server) | ||
| target_link_libraries(server Ice::Ice) |
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,17 +1,44 @@ | ||
| # Callback | ||
|
|
||
| A simple callback demo that illustrates how a client can pass a proxy | ||
| to a server, invoke an operation in the server, and the [server call | ||
| back][1] into an object provided by the client as part of that invocation. | ||
|
|
||
| To run the demo, first start the server: | ||
|
|
||
| To build the demo run: | ||
|
|
||
| ```shell | ||
| cmake -B build | ||
| cmake --build build --config Release | ||
| ``` | ||
|
|
||
| To run the demo, first start the server: | ||
|
|
||
| **Linux/macOS:** | ||
|
|
||
| ```shell | ||
| ./build/server | ||
| ``` | ||
| server | ||
|
|
||
| **Windows:** | ||
|
|
||
| ```shell | ||
| build\Release\server | ||
| ``` | ||
|
|
||
| In a separate window, start the client: | ||
|
|
||
| **Linux/macOS:** | ||
|
|
||
| ```shell | ||
| ./build/client | ||
| ``` | ||
| client | ||
|
|
||
| **Windows:** | ||
|
|
||
| ```shell | ||
| build\Release\client | ||
| ``` | ||
|
|
||
| [1]: https://doc.zeroc.com/ice/3.7/client-server-features/the-ice-threading-model/nested-invocations |
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,13 @@ | ||
| cmake_minimum_required(VERSION 3.16) | ||
|
|
||
| project(context CXX) | ||
|
|
||
| include(../../cmake/common.cmake) | ||
|
|
||
| add_executable(client Client.cpp Context.ice) | ||
| slice2cpp_generate(client) | ||
| target_link_libraries(client Ice::Ice) | ||
|
|
||
| add_executable(server Server.cpp ContextI.cpp ContextI.h Context.ice) | ||
| slice2cpp_generate(server) | ||
| target_link_libraries(server Ice::Ice) |
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,15 +1,40 @@ | ||
| # Context | ||
|
|
||
| This demo illustrates how to use [request contexts][1]. | ||
|
|
||
| To build the demo run: | ||
|
|
||
| ```shell | ||
| cmake -B build | ||
| cmake --build build --config Release | ||
| ``` | ||
|
|
||
| To run the demo, first start the server: | ||
|
|
||
| **Linux/macOS:** | ||
|
|
||
| ```shell | ||
| ./build/server | ||
| ``` | ||
| server | ||
|
|
||
| **Windows:** | ||
|
|
||
| ```shell | ||
| build\Release\server | ||
| ``` | ||
|
|
||
| In a separate window, start the client: | ||
|
|
||
| **Linux/macOS:** | ||
|
|
||
| ```shell | ||
| ./build/client | ||
| ``` | ||
| client | ||
|
|
||
| **Windows:** | ||
|
|
||
| ```shell | ||
| build\Release\client | ||
| ``` | ||
|
|
||
| [1]: https://doc.zeroc.com/ice/3.7/client-side-features/request-contexts |
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,19 @@ | ||
| cmake_minimum_required(VERSION 3.16) | ||
|
|
||
| project(interceptor CXX) | ||
|
|
||
| include(../../cmake/common.cmake) | ||
|
|
||
| add_executable(client Client.cpp Interceptor.ice) | ||
| slice2cpp_generate(client) | ||
| target_link_libraries(client Ice::Ice) | ||
|
|
||
| add_executable(server | ||
| Server.cpp | ||
| InterceptorI.cpp InterceptorI.h Interceptor.ice | ||
| ThermostatI.cpp ThermostatI.h | ||
| AuthenticatorI.cpp AuthenticatorI.h | ||
| ) | ||
|
|
||
| slice2cpp_generate(server) | ||
| target_link_libraries(server Ice::Ice) |
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,13 @@ | ||
| cmake_minimum_required(VERSION 3.16) | ||
|
|
||
| project(interleaved CXX) | ||
|
|
||
| include(../../cmake/common.cmake) | ||
|
|
||
| add_executable(client Client.cpp Throughput.ice) | ||
| slice2cpp_generate(client) | ||
| target_link_libraries(client Ice::Ice) | ||
|
|
||
| add_executable(server Server.cpp ThroughputI.cpp ThroughputI.h Throughput.ice) | ||
| slice2cpp_generate(server) | ||
| target_link_libraries(server Ice::Ice) |
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,13 @@ | ||
| cmake_minimum_required(VERSION 3.16) | ||
|
|
||
| project(greeter CXX) | ||
|
|
||
| include(../../cmake/common.cmake) | ||
|
|
||
| add_executable(client Client.cpp Printer.ice) | ||
| slice2cpp_generate(client) | ||
| target_link_libraries(client Ice::Ice) | ||
|
|
||
| add_executable(server Server.cpp PrinterI.cpp PrinterI.h Printer.ice) | ||
| slice2cpp_generate(server) | ||
| target_link_libraries(server Ice::Ice) | ||
Oops, something went wrong.
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.