Skip to content

Commit 2f16588

Browse files
Merge pull request #56 from connectivecpp/develop
Documentation updates, add image files to Doxyfile
2 parents 308bda9 + ea326c2 commit 2f16588

File tree

6 files changed

+35
-245
lines changed

6 files changed

+35
-245
lines changed

README.md

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Chops Net IP is layered on top of the Asio asynchronous networking library, taki
88

99
Chops Net IP:
1010

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).
1515

1616
#### Unit Test and Documentation Generation Workflow Status
1717

@@ -23,13 +23,38 @@ Chops Net IP:
2323

2424
![GH Tag](https://img.shields.io/github/v/tag/connectivecpp/chops-net-ip?label=GH%20tag)
2525

26+
## Generated Documentation
27+
28+
The generated Doxygen documentation for `chops_net_ip` is [here](https://connectivecpp.github.io/chops-net-ip/).
29+
2630
## Overview
2731

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.
2933

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.
3135

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).
3358

3459
## Library Dependencies
3560

doc/Doxyfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,9 @@ FILE_PATTERNS = *.c \
937937
*.vhdl \
938938
*.ucf \
939939
*.qsf \
940+
*.jpg \
941+
*.png \
942+
*.svg \
940943
*.ice
941944

942945
# The RECURSIVE tag can be used to specify whether or not subdirectories should

oldCMakeLists.txt

Lines changed: 0 additions & 53 deletions
This file was deleted.

oldReadme.md

Lines changed: 0 additions & 124 deletions
This file was deleted.

test/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
## Unit Tests
44

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-
75
All of the unit tests run on one host, with the networking unit tests using `localhost` (or equivalent).
86

97
### Shared Test

test/oldCMakeLists.txt

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)