You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-7Lines changed: 32 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,10 @@ Chops Net IP is layered on top of the Asio asynchronous networking library, taki
8
8
9
9
Chops Net IP:
10
10
11
-
1. Asio gotchas
12
-
2. Simplifies many use cases
13
-
3. API between TCP and UDP is similar, allowing shared code
14
-
4. Provides callback points
11
+
1.Handles most of the Asio "gotchas", such as keeping buffers "alive" in asynchronous designs.
12
+
2. Simplifies many networking use cases, allowing simpler callbacks to be used.
13
+
3.Provides a similar API between TCP and UDP, allowing shared code and easy switching between protocols.
14
+
4. Provides callback interfaces for all of the "state" change points in TCP and UDP, allowing customized code (for example logging or statistics collection).
15
15
16
16
#### Unit Test and Documentation Generation Workflow Status
The generated Doxygen documentation for `chops_net_ip` is [here](https://connectivecpp.github.io/chops-net-ip/).
29
+
26
30
## Overview
27
31
28
-
(fill in)
32
+
For many software developers, asynchronous network programming in C++ is not easy. It is complex, has many pitfalls, and requires designing C++ code in a way that is not natural, even for those with years of experience. Chops Net IP ("C"onnective "H"andcrafted "Op"enwork "S"oftware, Networking over Internet Protocol) simplifies asynchronous network programming and provides useful (and tasty!) abstractions for many types of communication patterns.
29
33
30
-
## Generated Documentation
34
+
Chops Net IP is layered on top of Chris Kohlhoff's Asio library (see [References](https://connectivecpp.github.io/doc/references.html)) allowing it to be portable across many compilers and platforms. If networking is standardized in C++ Chops Net IP will directly use the networking facilities of the C++ standard library.
31
35
32
-
The generated Doxygen documentation for `chops_net_ip` is [here](https://connectivecpp.github.io/chops-net-ip/).
36
+
### Tasty Uses
37
+
38
+
Example environments where Chops Net IP is a good fit:
39
+
40
+
- Applications that are event driven or highly asynchronous in nature.
41
+
- Applications where data is generated and handled in a non-symmetric manner. For example, data may be generated on the TCP acceptor side, or may be generated on a TCP connector side, or on both sides depending on the use case. Similarly, applications where the data flow is bi-directional and sends or receives are data-driven versus pattern-driven work well with this library.
42
+
- Applications interacting with multiple (many) connections (e.g. handling multiple sensors or inputs or outputs), each with low to moderate throughput needs (i.e. IoT environments, chat networks, gaming networks).
43
+
- Small footprint or embedded environments, where all network processing is run inside a single thread. In particular, environments where a JVM (or similar run-time support) is too costly in terms of system resources, but have a relatively rich operating environment (e.g. Linux running on a small chip) are a very good fit. (Currently the main constraint is small system support in the Asio library implementation.)
44
+
- Applications with relatively simple network processing that need an easy-to-use and quick-for-development networking library.
45
+
- Applications with configuration driven networks that may need to switch (for example) between TCP connect versus TCP accept for a given connection, or between TCP and UDP for a given communication path.
46
+
- Peer-to-peer applications where the application doesn't care which side connects or accepts.
47
+
- Frameworks or groups of applications where abstracting wire-protocol logic from message processing logic makes sense.
48
+
49
+
### Examples
50
+
51
+
Example demo programs are in the [`/example`](./example) directory.
52
+
53
+
The `simple_chat_demo.cpp` program has a listing of the multiple steps to set up a working example.
54
+
55
+
### Want More?
56
+
57
+
A detailed overview, a C++ socket library comparison, and a FAQ is [available here](doc/overview.md).
Copy file name to clipboardExpand all lines: test/README.md
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,6 @@
2
2
3
3
## Unit Tests
4
4
5
-
There is a `Catch2` main source named `main_test.cpp` in the `test` directory, which is used in building `Catch2` based unit tests. Each individual unit test is in a subdirectory corresponding to the production source subdirectory.
6
-
7
5
All of the unit tests run on one host, with the networking unit tests using `localhost` (or equivalent).
0 commit comments