mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
renaming and re-titling the app client tutorial to utility client
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
Client
|
||||
|
||||
separate thread
|
||||
|
||||
multiple connections at once
|
||||
|
||||
|
||||
An application with its own event loop. This demonstrates an example of how to integrate WebSocket++ into an application with a pre-existing event loop. This includes applications that use GUI frameworks like wxWidgets, Qt, etc.
|
||||
|
||||
- Uses a dedicated thread (or thread pool) to process WebSocket traffic. This allows better responsiveness for WebSocket activities, multiple similtaneous connections, easily reconnecting
|
||||
|
||||
|
||||
This example application impliments a command line menu to manage an arbitrary number of outgoing websocket connections.
|
||||
|
||||
|
||||
Core Options:
|
||||
- Create a new connection to a WebSocket server with the given URI.
|
||||
- View list of outstanding connections with some metadata
|
||||
- Send a message along a specific connection
|
||||
- Send a message to all connections
|
||||
- List all messages received by a given connection
|
||||
- Close a specific connection
|
||||
- Close all connections
|
||||
|
||||
Bonus Features
|
||||
- Set the user agent
|
||||
- Set the origin
|
||||
- Set other arbitrary headers
|
||||
- Set proxy information
|
||||
- Send a ping
|
||||
|
||||
utility features
|
||||
- Pipe one connection to another
|
||||
@@ -1,14 +0,0 @@
|
||||
Utility Client Example Application
|
||||
==================================
|
||||
|
||||
Chapter 2: Initial Setup & Basics
|
||||
---------------------------------
|
||||
|
||||
Using intermediate level features
|
||||
|
||||
- Subprotocol negotiation
|
||||
- Setting and reading custom headers
|
||||
- Ping and Pong
|
||||
|
||||
### Step 1
|
||||
|
||||
@@ -14,6 +14,9 @@ A basic program loop that prompts the user for a command and then processes it.
|
||||
`clang++ step1.cpp`
|
||||
|
||||
#### Code so far
|
||||
|
||||
*note* A code snapshot for each step is present next to this tutorial file in the git repository.
|
||||
|
||||
```cpp
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
@@ -673,6 +676,9 @@ _Sending and receiving messages_
|
||||
|
||||
_Using TLS / Secure WebSockets_
|
||||
|
||||
Chapter 2: Intermediate Features
|
||||
--------------------------------
|
||||
|
||||
### Step 8
|
||||
|
||||
_Intermediate level features_
|
||||
@@ -685,7 +691,7 @@ _Intermediate level features_
|
||||
- Setting Origin
|
||||
- Timers and security
|
||||
- Close behavior
|
||||
|
||||
- Send one message to all connections
|
||||
|
||||
|
||||
### Misc stuff not sure if it should be included here or elsewhere?
|
||||
Reference in New Issue
Block a user