File tree Expand file tree Collapse file tree 4 files changed +143
-1
lines changed Expand file tree Collapse file tree 4 files changed +143
-1
lines changed Original file line number Diff line number Diff line change 11# websocket async-server
22
3- Simple example of the asynchronous websocket echo server.
3+ Simple example of the ** asynchronous** websocket echo server. Built with oat++ (AKA oatpp) web framework .
44
55See more:
66
Original file line number Diff line number Diff line change 1+ # secure websocket client with mbedtls
2+
3+ Simple example of the secure websocket client. Built with oat++ (AKA oatpp) web framework.
4+ TLS backend - MbedTLS.
5+
6+ See more:
7+
8+ - [ Oat++ Website] ( https://oatpp.io/ )
9+ - [ Oat++ Github Repository] ( https://github.com/oatpp/oatpp )
10+ - [ Get Started With Oat++] ( https://oatpp.io/docs/start )
11+
12+ ## Overview
13+
14+ ### Project layout
15+
16+ ```
17+ |- CMakeLists.txt // projects CMakeLists.txt
18+ |- src/
19+ | |
20+ | |- WSListener.hpp // WebSocket listeners are defined here
21+ | |- App.cpp // main() is here
22+ |
23+ |- utility/install-oatpp-modules.sh // utility script to install required oatpp-modules.
24+ ```
25+
26+ ## Build and Run
27+
28+ ### Using CMake
29+
30+ ** Requires**
31+ - MbedTLS installed - see [ install mbedtls] ( #install-mbedtls ) .
32+ - [ oatpp] ( https://github.com/oatpp/oatpp ) , [ oatpp-websocket] ( https://github.com/oatpp/oatpp-websocket ) ,
33+ and [ oatpp-mbedtls] ( https://github.com/oatpp/oatpp-mbedtls ) modules installed. You may run ` utility/install-oatpp-modules.sh `
34+ script to install required oatpp modules.
35+
36+ ```
37+ $ mkdir build && cd build
38+ $ cmake ..
39+ $ make
40+ $ ./websocket-client-mbedtls-exe # - run application.
41+ ```
42+
43+ ## Install MbedTLS
44+
45+ ``` bash
46+ git clone -b ' mbedtls-2.16.1' --single-branch --depth 1 --recurse-submodules https://github.com/ARMmbed/mbedtls
47+
48+ cd mbedtls
49+ mkdir build && cd build
50+
51+ cmake ..
52+ make install
53+ ```
Original file line number Diff line number Diff line change 1+ # websocket client
2+
3+ Simple example of the websocket client. Built with oat++ (AKA oatpp) web framework.
4+
5+ See more:
6+
7+ - [ Oat++ Website] ( https://oatpp.io/ )
8+ - [ Oat++ Github Repository] ( https://github.com/oatpp/oatpp )
9+ - [ Get Started With Oat++] ( https://oatpp.io/docs/start )
10+
11+ ## Overview
12+
13+ ### Project layout
14+
15+ ```
16+ |- CMakeLists.txt // projects CMakeLists.txt
17+ |- src/
18+ | |
19+ | |- WSListener.hpp // WebSocket listeners are defined here
20+ | |- App.cpp // main() is here
21+ |
22+ |- utility/install-oatpp-modules.sh // utility script to install required oatpp-modules.
23+ ```
24+
25+ ## Build and Run
26+
27+ ### Using CMake
28+
29+ ** Requires:** [ oatpp] ( https://github.com/oatpp/oatpp ) , and [ oatpp-websocket] ( https://github.com/oatpp/oatpp-websocket )
30+ modules installed. You may run ` utility/install-oatpp-modules.sh `
31+ script to install required oatpp modules.
32+
33+ After all dependencies satisfied:
34+
35+ ```
36+ $ mkdir build && cd build
37+ $ cmake ..
38+ $ make
39+ $ ./websocket-client-exe # - run application.
40+ ```
41+
Original file line number Diff line number Diff line change 1+ # websocket server
2+
3+ Simple example of the ** multithreaded** websocket echo server. Built with oat++ (AKA oatpp) web framework.
4+
5+ See more:
6+
7+ - [ Oat++ Website] ( https://oatpp.io/ )
8+ - [ Oat++ Github Repository] ( https://github.com/oatpp/oatpp )
9+ - [ Get Started With Oat++] ( https://oatpp.io/docs/start )
10+
11+ ## Overview
12+
13+ ### Project layout
14+
15+ ```
16+ |- CMakeLists.txt // projects CMakeLists.txt
17+ |- src/
18+ | |
19+ | |- controller/
20+ | | |
21+ | | |- MyController.hpp // ApiController with websocket endpoint
22+ | |
23+ | |- websocket/
24+ | | |
25+ | | |- WSListener.hpp // WebSocket listeners are defined here
26+ | |
27+ | |- AppComponent.hpp // Application config.
28+ | |- App.cpp // main() is here
29+ |
30+ |- utility/install-oatpp-modules.sh // utility script to install required oatpp-modules.
31+ ```
32+
33+ ## Build and Run
34+
35+ ### Using CMake
36+
37+ ** Requires:** [ oatpp] ( https://github.com/oatpp/oatpp ) , and [ oatpp-websocket] ( https://github.com/oatpp/oatpp-websocket )
38+ modules installed. You may run ` utility/install-oatpp-modules.sh `
39+ script to install required oatpp modules.
40+
41+ After all dependencies satisfied:
42+
43+ ```
44+ $ mkdir build && cd build
45+ $ cmake ..
46+ $ make
47+ $ ./websocket-server-exe # - run application.
48+ ```
You can’t perform that action at this time.
0 commit comments