Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
320 commits
Select commit Hold shift + click to select a range
c55cb0b
Tightened up comparisons in basic_io_interface, finished unit testing…
cliffg-softwarelibre May 23, 2019
63e0886
Added check for char* in net_ip make_tcp_connector, working on net_ip…
cliffg-softwarelibre May 23, 2019
d4ce6d8
unit test dev, doc tweaks, unit test tweaks.
cliffg-softwarelibre May 24, 2019
8d67844
Unit test dev.
cliffg-softwarelibre May 25, 2019
6796878
Unit test comparison tweaks.
cliffg-softwarelibre May 25, 2019
3603822
Doc tweaks.
cliffg-softwarelibre May 25, 2019
612b00c
Unit testing, tweaking mock classes, io_output_delivery not quite rig…
cliffg-softwarelibre May 26, 2019
a31ce37
Having problems with variant matching up in io_output_delivery testing.
cliffg-softwarelibre May 26, 2019
f89418d
enhancing net_entity unit tests.
cliffg-softwarelibre May 30, 2019
17bfb1f
Enhancing net_entity unit test.
cliffg-softwarelibre May 31, 2019
ff9a29c
Testing UDP, net_entity.
cliffg-softwarelibre May 31, 2019
7813f16
Unit testing, finally have net_entity_test working well.
cliffg-softwarelibre May 31, 2019
9766f08
Finally have net_entity and io_output_deliver unit tests working.
cliffg-softwarelibre May 31, 2019
677f2ad
Doc updates, still need tweaks to doc/release.d
cliffg-softwarelibre Jun 2, 2019
49556a1
Changing return values of io_state_change functions.
cliffg-softwarelibre Jun 2, 2019
aec000f
Doc tweaks, relating to release info.
cliffg-softwarelibre Jun 2, 2019
f9f1507
Unit test work.
cliffg-softwarelibre Jun 2, 2019
785a3ef
Unit test dev.
cliffg-softwarelibre Jun 2, 2019
fafbc3c
Net_ip unit test dev.
cliffg-softwarelibre Jun 3, 2019
f93b77e
Enhancing unit test error checking.
cliffg-softwarelibre Jun 3, 2019
158d5b0
Enhancing unit test error checking.
cliffg-softwarelibre Jun 3, 2019
df096c7
Working on enhancing io_output_delivery error handling.
cliffg-softwarelibre Jun 4, 2019
5c6703b
Working on error handling in various components.
cliffg-softwarelibre Jun 6, 2019
ae9fd0d
Additional testing, found shutdown logic issue.
cliffg-softwarelibre Jun 6, 2019
cedba6b
Shutdown logic tweaks, memory leaks in TCP connector.
cliffg-softwarelibre Jun 7, 2019
314c1eb
Unit testing.
cliffg-softwarelibre Jun 7, 2019
fe06c8a
Fixed memory leaks and shutdown logic problems in TCP connector.
cliffg-softwarelibre Jun 7, 2019
2387f93
Various bugs fixes, still may have problems in a few areas.
cliffg-softwarelibre Jun 8, 2019
8eda580
Various bugs fixes, still may have problems in a few areas.
cliffg-softwarelibre Jun 8, 2019
d68f080
Added stop call to all net entities.
cliffg-softwarelibre Jun 8, 2019
c848b50
TCP connector debugging, almost sure there are still shutdown or stat…
cliffg-softwarelibre Jun 9, 2019
f626e3f
TCP connector minor tweaks.
cliffg-softwarelibre Jun 13, 2019
d374ae9
Unit testing and production code tweaks, trying to get everything cle…
cliffg-softwarelibre Jun 13, 2019
709b65e
More tweaks trying to get gracefull, complete shutdown.
cliffg-softwarelibre Jun 13, 2019
81a8beb
Various tweaks.
cliffg-softwarelibre Jun 14, 2019
be23d40
Adding output queue stats accum component.
cliffg-softwarelibre Jun 14, 2019
f1fcbcc
Adding output queue stats accum component.
cliffg-softwarelibre Jun 14, 2019
5291677
Adding output_queue_stats component and test.
cliffg-softwarelibre Jun 14, 2019
f67322a
Accumulate queue stats work, including unit test.
cliffg-softwarelibre Jun 14, 2019
2b46d1d
Output queue stats component ready to integrate.
cliffg-softwarelibre Jun 14, 2019
cdeb36f
Integrating accumulate component in unit tests.
cliffg-softwarelibre Jun 15, 2019
71253ce
Working on basic_io_output changes.
cliffg-softwarelibre Jun 18, 2019
a5fd586
Simplify basic_io_output, change get_shared_ptr to get_ptr in basic_i…
cliffg-softwarelibre Jun 18, 2019
799c3a6
Doxygen tweaks.
cliffg-softwarelibre Jun 18, 2019
6a6c161
Reworking output queue.
cliffg-softwarelibre Jun 18, 2019
dd45efc
reworking output queue.
cliffg-softwarelibre Jun 19, 2019
b130c2b
Getting close on output_queue changes and testing.
cliffg-softwarelibre Jun 19, 2019
63992cb
Output queue rework, including unit test, now completed.
cliffg-softwarelibre Jun 19, 2019
e4a4eb4
Working on io_common.
cliffg-softwarelibre Jun 19, 2019
851e798
Reworking mutex locking for sends.
cliffg-softwarelibre Jun 20, 2019
ae7c7fc
Reworking io_common and related code.
cliffg-softwarelibre Jun 20, 2019
fcc38c5
Working on io_common unit testing, factored out common code with outp…
cliffg-softwarelibre Jun 21, 2019
ae1c496
io_common fully unit tests, related changes made, io_buf unit test ad…
cliffg-softwarelibre Jun 21, 2019
ad686b7
Many low-level details relating to io_outpu, various unit test tweaks…
cliffg-softwarelibre Jun 21, 2019
6742281
Debuggin tcp_connector.
cliffg-softwarelibre Jun 22, 2019
f193f13
Doxygen tweaks.
cliffg-softwarelibre Jun 22, 2019
c7d5834
Shutdown tweaks on TCP acceptor.
cliffg-softwarelibre Jun 22, 2019
5907948
Enhanced TCP acceptor unit test for additional start and stop and shu…
cliffg-softwarelibre Jun 22, 2019
8bd3bad
Working on TCP connector problems.
cliffg-softwarelibre Jun 23, 2019
a7632f6
TCP connector finally looks decent, lots of unit test tweaks as well.
cliffg-softwarelibre Jun 23, 2019
49729b2
tweaks, unit test dev, still work to do.
cliffg-softwarelibre Jun 24, 2019
690dcfc
Adding promise future to start and stop, pause time to stop, factorin…
cliffg-softwarelibre Jun 24, 2019
d2ee206
Adding stop pause time to mock class.
cliffg-softwarelibre Jun 24, 2019
a3d63ae
Adding stop pause time to mock class.
cliffg-softwarelibre Jun 24, 2019
8eec570
Improving net entity start and stop, factoring out common code.
cliffg-softwarelibre Jun 25, 2019
afaadf1
Backing out stop pause time, clarifying docs, fixing unit tests.
cliffg-softwarelibre Jun 25, 2019
ebd5116
net_entity_common dev.
cliffg-softwarelibre Jun 25, 2019
c10ab29
Minor cleanup.
cliffg-softwarelibre Jun 25, 2019
f3a1bcd
Enhanced net_entity_common, simplified start and stop entity logic, v…
cliffg-softwarelibre Jun 27, 2019
03d5a41
Doxygen and documentation updates.
cliffg-softwarelibre Jun 27, 2019
f615e3e
Working on net entity unit test.
cliffg-softwarelibre Jun 27, 2019
41c69f0
Fixed net_entity_test, fixed bugs in visit_io_outpu in acceptor, conn…
cliffg-softwarelibre Jun 27, 2019
2860cfe
Unit test fixes and dev.
cliffg-softwarelibre Jun 27, 2019
33862f7
Unit testing net_ip_test.
cliffg-softwarelibre Jun 27, 2019
fe6a9dd
Added post to io state chg callback in UDP entity, added doxygen note…
cliffg-softwarelibre Jun 29, 2019
5d36a17
Doc updates relating to start and stop coordination and design.
cliffg-softwarelibre Jun 29, 2019
5da47f9
Unit testing, trying to find bug in net_ip_test.
cliffg-softwarelibre Jun 29, 2019
24e3399
Working on udp_entity_io start, still bug to fix.
cliffg-softwarelibre Jun 30, 2019
f61bf1e
Added error check to start_io of udp_entity_io class.
cliffg-softwarelibre Jun 30, 2019
2c99211
Added fixed size message handling to shared test facilities, added un…
cliffg-softwarelibre Jun 30, 2019
d6143d0
Added fixed size msg buf testing to tcp_io_test as well as shared tes…
cliffg-softwarelibre Jun 30, 2019
9f3ae89
Enhancing msg handling shared test and tcp_io_test.
cliffg-softwarelibre Jul 1, 2019
58e23c4
Enhanced TCP acceptor test with fixed size message handling, using se…
cliffg-softwarelibre Jul 2, 2019
f6237d2
Working on enhancing TCP connector test with fixed size messages and …
cliffg-softwarelibre Jul 2, 2019
398e377
More unit test dev.
cliffg-softwarelibre Jul 4, 2019
25edfb2
Unit testing, finding and fixing bugs, mostly in unit tests.
cliffg-softwarelibre Jul 5, 2019
8b083df
Messing around with TCP acceptor design.
cliffg-softwarelibre Jul 5, 2019
dfcf6f9
Starting changes to io state chg callback not returning bool.
cliffg-softwarelibre Jul 6, 2019
7473eba
Working on enhancements, including io state chg.
cliffg-softwarelibre Jul 6, 2019
c25a19f
Enhancing TCP io.
cliffg-softwarelibre Jul 7, 2019
3a70ef3
Integrating capture forward.
cliffg-softwarelibre Jul 8, 2019
a4f39c7
Doc updates.
cliffg-softwarelibre Jul 8, 2019
fa49c7b
Renaming starts_funcs to msg_handling_start_funcs in shared_test.
cliffg-softwarelibre Jul 8, 2019
4b3af37
Msg handling start funcs unit test in place, needs implementations.
cliffg-softwarelibre Jul 8, 2019
33fdf51
Start funcs rename, minor tcp_io tweaks.
cliffg-softwarelibre Jul 8, 2019
2e1a59a
Testing and enhancing tcp_io.hpp.
cliffg-softwarelibre Jul 11, 2019
0cdc938
Unit testing.
cliffg-softwarelibre Jul 11, 2019
9bbf0b5
Fixing up io state change signatures and logic.
cliffg-softwarelibre Jul 11, 2019
911c06d
Unit testing, fixing TCP connector test, other minor tweaks.
cliffg-softwarelibre Jul 12, 2019
e6084e4
Working through UDP bugs and unit tests.
cliffg-softwarelibre Jul 13, 2019
e086608
UDP entity testing, appears to be solid for the moment.
cliffg-softwarelibre Jul 13, 2019
022d38f
Fixing up IO state change.
cliffg-softwarelibre Jul 13, 2019
9e7a0a6
Fixing up IO state change.
cliffg-softwarelibre Jul 13, 2019
3522354
Fixing up IO state change.
cliffg-softwarelibre Jul 13, 2019
9b9d43a
Doxygen updates.
cliffg-softwarelibre Jul 13, 2019
6e38c70
Working on net_ip_test.
cliffg-softwarelibre Jul 13, 2019
1d00686
Minor tweaks to UDP entity io and unit test.
cliffg-softwarelibre Jul 13, 2019
458433d
Enhancing net_ip_test.
cliffg-softwarelibre Jul 13, 2019
96773a6
Bug fixes in io_state_chg, more dev on net_ip_test.
cliffg-softwarelibre Jul 14, 2019
a9c7887
Final version of net_ip_test.
cliffg-softwarelibre Jul 14, 2019
471c2a5
Doxygen and doc updates.
cliffg-softwarelibre Jul 14, 2019
6133711
Working on basic_io_output bug, either in prod class or unit test.
cliffg-softwarelibre Jul 14, 2019
321ce81
Unit test fixups in object compares for basic_io_interface and basic_…
cliffg-softwarelibre Jul 15, 2019
f77de23
Merge pull request #38 from connectivecpp/master
cliffg-softwarelibre Jul 20, 2019
412a339
Merge branch 'cliff-dev' into develop
cliffg-softwarelibre Jul 20, 2019
65d30ed
Fixing up paths in CMake for tests.
cliffg-softwarelibre Jul 20, 2019
ee12f55
R1 first compile
tgill880 Jul 22, 2019
954c976
R1 include updates
tgill880 Jul 22, 2019
5431a76
net_ip/component update
tgill880 Jul 22, 2019
07ffd64
io_output
tgill880 Jul 24, 2019
20a6203
Added defgroup doxygen command for example_module comments.
cliffg-softwarelibre Jul 25, 2019
61e5961
update for R1
tgill880 Aug 13, 2019
62c7434
dead code removal
tgill880 Aug 13, 2019
e9bfbdb
R1 changes
tgill880 Aug 20, 2019
5255b62
first port to new chops-net
tgill880 Aug 27, 2019
bb6d53c
comments/header cleanup
tgill880 Sep 2, 2019
4828a0e
first draft of v1 port
tgill880 Sep 2, 2019
542cdde
fixed compile errors
tgill880 Sep 3, 2019
36f6be1
fixed udp_io_output; check ret for error
tgill880 Sep 10, 2019
cb181e6
remove dead code, typo in comment
tgill880 Sep 10, 2019
34926cd
add make files
tgill880 Sep 10, 2019
ad7570d
remove address sanitizer
tgill880 Sep 10, 2019
0f21329
remove address sanitizer
tgill880 Sep 10, 2019
df5b7f3
add missing }
tgill880 Sep 10, 2019
dab6cad
remove dead code
tgill880 Sep 10, 2019
0d6dca5
remove address sanitizer
tgill880 Sep 14, 2019
54773b0
Fixed bug in simple_variable_len_msg_frame, rightened up reconnect er…
cliffg-softwarelibre Sep 18, 2019
12be767
Upped Catch2 version requirement as part of u sing TEMPLATE_TEST_CASE
cliffg-softwarelibre Oct 6, 2019
4c46506
Updated Catch2 dependency version for template test cases.
Oct 8, 2019
d874955
Updating README
cliffg-softwarelibre Oct 8, 2019
9893698
header update
tgill880 Oct 15, 2019
5d57eb3
update header
tgill880 Oct 15, 2019
8030924
change binary name to local_echo
tgill880 Oct 15, 2019
52f16f1
header updates
tgill880 Oct 15, 2019
4c861d6
name change
tgill880 Oct 15, 2019
9bd6ba0
change shutdown to calling .stop() for both net entities
tgill880 Oct 15, 2019
2d63c1c
header updatre
tgill880 Oct 15, 2019
9a5d951
change name of binary & compile script
tgill880 Oct 15, 2019
061407f
adding a tutorial file for documenting the examples and useages of ch…
RAgerone Oct 15, 2019
c363d3d
adding a tutorial file for documenting the examples and useages of ch…
RAgerone Oct 15, 2019
5228f64
changed the name of the file that I wanted to add
RAgerone Oct 15, 2019
c35e4dc
update compile script
tgill880 Oct 15, 2019
f318334
update to new api
tgill880 Oct 15, 2019
b31a288
header update
tgill880 Oct 15, 2019
ff6806f
minor cleanup
tgill880 Oct 22, 2019
9b5d604
updates for v1
tgill880 Oct 22, 2019
3e4c86e
early conversion efforts
tgill880 Oct 22, 2019
b87c73d
temp don't compile char_server_demo
tgill880 Oct 22, 2019
6dbcb6d
updates for 1st release
tgill880 Oct 22, 2019
957b585
fix typo
tgill880 Oct 22, 2019
d87bf23
fix typo
tgill880 Oct 22, 2019
b661934
use newer api
tgill880 Oct 22, 2019
2448a4d
elim dead code
tgill880 Oct 22, 2019
85e0d98
correct param for io_out.send
tgill880 Oct 22, 2019
3c82573
correct param for net_entity_accpet
tgill880 Oct 22, 2019
8dcad39
wk.reset
tgill880 Oct 22, 2019
7f5719c
wk.reset
tgill880 Oct 22, 2019
118c5ab
compile chat_server_demo
tgill880 Oct 22, 2019
3ece66c
remove send to all
tgill880 Oct 22, 2019
c587df4
use correct includes
tgill880 Oct 22, 2019
fd6cbbb
restore send to all
tgill880 Oct 22, 2019
405aba7
don't compile simple_chat_demo for now
tgill880 Oct 22, 2019
a3e52c2
dont compile chat_server_demo for now
tgill880 Oct 22, 2019
4c8d52f
add send_to_all
tgill880 Oct 29, 2019
7767bd9
Merge branch 'develop' of https://github.com/connectivecpp/chops-net-…
tgill880 Oct 29, 2019
af10958
Merge branch 'develop' of https://github.com/connectivecpp/chops-net-…
RAgerone Oct 29, 2019
e309ffb
include send_to_all
tgill880 Oct 29, 2019
9ed7810
fix msg_hndlr
tgill880 Oct 29, 2019
a165b23
Adding link for expect-lite dependency.
cliffg-softwarelibre Oct 29, 2019
095f941
Merge branch 'develop' of https://github.com/connectivecpp/chops-net-…
cliffg-softwarelibre Oct 29, 2019
d05a207
Adding link for expect-lite dependency.
cliffg-softwarelibre Oct 29, 2019
8579997
change basic_io_interface to basic_io_interface
tgill880 Oct 29, 2019
705e42e
use correct chops::net::basic_io_output
tgill880 Oct 29, 2019
41aeb98
change name of private data member
tgill880 Oct 29, 2019
bb62adb
change operator()
tgill880 Oct 29, 2019
a638d4a
Merge branch 'develop' of https://github.com/connectivecpp/chops-net-…
tgill880 Oct 29, 2019
8a8790f
created first iteration of tcp_connector_timeout
n-deutsch Oct 29, 2019
500a231
update header
tgill880 Oct 29, 2019
6ac7922
update make-server
tgill880 Oct 29, 2019
d59040c
Modified link for Asio in README.
cliffg-softwarelibre Oct 29, 2019
d94f4b3
Merge branch 'develop' of https://github.com/connectivecpp/chops-net-…
cliffg-softwarelibre Oct 29, 2019
296f233
Merge branch 'develop' of https://github.com/connectivecpp/chops-net-…
tgill880 Oct 29, 2019
e9161f1
change clang++ to g++
tgill880 Oct 29, 2019
522b51c
Updated external dependencies with links.
cliffg-softwarelibre Oct 29, 2019
39e1f9f
Merge branch 'develop' of https://github.com/connectivecpp/chops-net-…
cliffg-softwarelibre Oct 29, 2019
e001568
Updated external dependencies with links.
cliffg-softwarelibre Oct 29, 2019
161cebb
Updated external dependencies with links.
cliffg-softwarelibre Oct 29, 2019
8578c83
Updated external dependencies with links.
cliffg-softwarelibre Oct 29, 2019
e7a8ded
Changed proggram to program.
cliffg-softwarelibre Nov 5, 2019
8465c86
adding tutorial documentation
RAgerone Nov 5, 2019
6163225
added build directions for osx
RAgerone Nov 5, 2019
59bf72b
Merge branch 'develop' of https://github.com/connectivecpp/chops-net-…
RAgerone Nov 5, 2019
0b16712
added udp receiver documentation
RAgerone Nov 5, 2019
0de7ae2
Wrote unit tests for tcp_connector_timeout
n-deutsch Nov 5, 2019
54f81dd
Refactored tcp_connector_timeout after getting feedback from Cliff
n-deutsch Nov 5, 2019
5798655
removed unused file
RAgerone Nov 5, 2019
4a91e95
removed whitespace
RAgerone Nov 5, 2019
66a3d51
Fixed failing unit tests in tcp_connector_timeout_test.cpp
n-deutsch Nov 5, 2019
683e238
Merge pull request #40 from connectivecpp/ndeutsch_tcp_connector_timeout
cliffg-softwarelibre Nov 12, 2019
02758d6
Added doxygen to tcp_connector_timeout.hpp
cliffg-softwarelibre Nov 12, 2019
09ffa8b
Added doxygen to tcp_connector_timeout, will add more constructors
cliffg-softwarelibre Nov 12, 2019
77e1581
TCP connector timeout changes.
cliffg-softwarelibre Nov 17, 2019
4bdbaf8
Last iteration (hopefully) of tcp_connector_timeout.hpp and unit test.
cliffg-softwarelibre Nov 17, 2019
d2f0e5e
Fix typo in doxygen.
cliffg-softwarelibre Nov 18, 2019
78ad67c
remove add_test() call in make_exe step for examples
Crghilardi Nov 18, 2019
eb78615
Merge pull request #44 from connectivecpp/no_autotest_examples
cliffg-softwarelibre Nov 19, 2019
8971e90
initital commit travis yml for chops-net
Crghilardi Nov 14, 2019
6b5dab8
TCP connector timeout changes, both to core API and to unit tests.
cliffg-softwarelibre Nov 19, 2019
0c65b2e
Lowered unit test message counts so that unit tests don't take as long
cliffg-softwarelibre Nov 19, 2019
409ae84
Merge branch 'develop' into addTravisCI
Crghilardi Nov 19, 2019
f5e34e6
remove -j2 flag from make test to see if that affects timings
Crghilardi Nov 19, 2019
77c3e11
recomment branches statement
Crghilardi Nov 19, 2019
790be9e
remove mac from travis matrix and add badges to README
Crghilardi Nov 20, 2019
a480a2e
Merge pull request #45 from connectivecpp/addTravisCI
cliffg-softwarelibre Nov 22, 2019
d181a87
Merge pull request #41 from oxenran/demo-doc
cliffg-softwarelibre Nov 22, 2019
58647b8
Moved Roxanne example app instructions to example/README.md, modified…
cliffg-softwarelibre Nov 22, 2019
fa01cb1
Create README.md
cliffg-softwarelibre Nov 25, 2019
e2efc3a
Update README.md
cliffg-softwarelibre Nov 25, 2019
bd51de3
Update README.md
cliffg-softwarelibre Nov 25, 2019
ac6a446
Update README.md
cliffg-softwarelibre Nov 25, 2019
dd3c7a8
Adding license badge to main README
cliffg-softwarelibre Nov 27, 2019
2cf8865
Added send_to_all_test.cpp back to branch, tweaked doxygen and a few …
cliffg-softwarelibre Nov 27, 2019
e05c228
Added send_to_all_test to CMakeLists.txt in test
cliffg-softwarelibre Nov 27, 2019
d93e82b
Creating README in test_data_blaster
cliffg-softwarelibre Dec 3, 2019
33c900d
Updating README in test with clarifications and additional text.
cliffg-softwarelibre Dec 3, 2019
c1d1f1f
Updating README in test with clarifications and additional text.
cliffg-softwarelibre Dec 3, 2019
da085a0
Updating README in test with clarifications and additional text.
cliffg-softwarelibre Dec 3, 2019
731f378
Filling out specs for TDB
cliffg-softwarelibre Dec 4, 2019
1ef03d2
Creating initial files for Test Data Blaster, updating README
cliffg-softwarelibre Dec 5, 2019
aa61988
Working on T-DB.
cliffg-softwarelibre Dec 6, 2019
0f5b608
T-DB dev
cliffg-softwarelibre Dec 7, 2019
c2dfb42
T-DB dev
cliffg-softwarelibre Dec 7, 2019
5586de9
Working on T-DB.
cliffg-softwarelibre Dec 8, 2019
727e6c9
Test Data Blaster in buildable state, but lots of work to be done in …
cliffg-softwarelibre Dec 8, 2019
2beaea9
Adding to T-DB README.
cliffg-softwarelibre Dec 8, 2019
c37c00f
Renaming tcp_dsr_args.hpp and unit test to dsr_args.hpp, to contain b…
cliffg-softwarelibre Dec 11, 2019
56ab1a6
Put temporary code in for command line parms and mon connection, for …
cliffg-softwarelibre Dec 11, 2019
72a60a7
Adding temporary args and monitor code, now buildable
cliffg-softwarelibre Dec 12, 2019
a0e8a05
Testing DSR, now working with teporary command line and monitor msg h…
cliffg-softwarelibre Dec 12, 2019
eb3fdfa
Doc cleanup, third_party includes changes.
cliffg-softwarelibre Jan 9, 2020
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
Prev Previous commit
Next Next commit
Added doxygen to tcp_connector_timeout.hpp
  • Loading branch information
cliffg-softwarelibre committed Nov 12, 2019
commit 02758d6711cd65c8948cbb0e8f14dcb87002170b
28 changes: 19 additions & 9 deletions include/net_ip/tcp_connector_timeout.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,35 @@
*
* @author Nathan Deutsch
*
* Copyright (c) 2017-2019 by Cliff Green and Nathan Deutsch
* Copyright (c) 2017-2019 by Cliff Green, Nathan Deutsch
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*
*/

#ifndef TCP_CONNECTOR_TIMEOUT_HPP_INCLUDED
#define TCP_CONNECTOR_TIMEOUT_HPP_INCLUDED
#ifndef TCP_CONNECTOR_TIMEOUT_HPP_INCLUDED
#define TCP_CONNECTOR_TIMEOUT_HPP_INCLUDED

#include <cmath>
#include <chrono>
#include <optional>
#include <cstddef> // std::size_t
#include <cmath>
#include <chrono>
#include <optional>

namespace chops {
namespace net {

/*
* @brief Class that handles TCP reconnection attempts
*/
/*
* @brief Class for computing TCP reconnection attempt timeouts.
*
* When a TCP connect attempt fails in a TCP connector, either the connector should quit
* attempting to connect, or should wait for a period of time and attempt another connect.
* This class allows multiple behaviors depending on the constructor parameters.
*
* If an application desires different behavior than what is provided by this class, the
* @c make_tcp_connector method takes a function object allowing any application defined
* logic.
*/
class tcp_connector_timeout {
public:
tcp_connector_timeout(std::chrono::milliseconds initial_timeout = std::chrono::milliseconds(500), std::chrono::milliseconds max_timeout = std::chrono::milliseconds(60 * 1000),
Expand Down Expand Up @@ -68,3 +77,4 @@ class tcp_connector_timeout {
} // end chops namespace

#endif