Commit graph

20 commits

Author SHA1 Message Date
Erik Ogenvik
295484dc46 Don't report normal shutdowns during negotiate. 2018-02-08 21:47:22 +01:00
Erik Ogenvik
62227f5664 Update with Atlas changes. 2018-02-06 13:45:11 +01:00
Erik Ogenvik
e43fbbea7f Don't set "ipv6_only".
This seems to throw exceptions.
2017-08-13 17:16:02 +02:00
Erik Ogenvik
0286bcd47d Replace "parents" with "parent". 2017-07-24 15:05:18 +02:00
Erik Ogenvik
8b55d0c072 Provide better error logging. 2017-01-16 17:23:00 +01:00
Erik Ogenvik
0d6211ee32 Bail early if no data to send. 2016-12-15 18:27:42 +01:00
Erik Ogenvik
bc5d992953 Use separete streams for input and output.
This also changes how data is written. Since it's not allowed
to call any write op while another async write operation is underway
we need to batch up data to be written, and send it only once
any existing write op has completed.
2016-12-15 18:27:42 +01:00
Erik Ogenvik
f383591d95 Provide better debug output for comms. 2016-12-15 18:27:42 +01:00
Erik Ogenvik
30185d095b Shut down socket on destruction.
The boost documentation isn't really clear on if this really is needed
though. Just to be safe we'll do it.
2014-02-17 23:21:00 +01:00
Erik Ogenvik
cd8250b710 Fix possible nullref. 2014-02-17 20:34:20 +01:00
Erik Ogenvik
6caffb14de Handle interleaved writes.
Since the streambuf instance will be invalidated by anything written to
it while it's being sent using an async call we need to use multiple
streambuf instances.
2014-02-06 13:38:32 +01:00
Erik Ogenvik
855e63b23d Actually set the timer first. 2014-02-04 12:56:23 +01:00
Erik Ogenvik
f7c6f538aa Handle negotiate failure. 2014-02-04 12:54:13 +01:00
Erik Ogenvik
bfee994edd Only poll negotiate if we've read data. 2014-02-04 12:44:02 +01:00
Erik Ogenvik
642faeeb28 Adapt to boost 1.46.
Since we're targetting the latest LTS release of Ubuntu as a nice
baseline, and that currently only supports 1.46, we need to remove the
nice steady_timer code. For now.

This commit should probably be reverted once a newer version of Ubuntu
LTS is available.
2014-02-04 12:25:18 +01:00
Erik Ogenvik
b77842b3a7 Remove superfluous methods. 2014-02-01 22:17:03 +01:00
Erik Ogenvik
ca91067592 Use std::chrono and steady timer. 2014-02-01 21:18:11 +01:00
Erik Ogenvik
86188fbad0 Adapt CommSocket to boost::asio. 2014-01-31 21:51:04 +01:00
Erik Ogenvik
f35ed7b254 Cleanup type references a bit. 2014-01-29 09:05:07 +01:00
Erik Ogenvik
1e0e8d0071 Make listener code more modular. 2014-01-28 14:44:16 +01:00
Renamed from server/CommAsioAdminClient.cpp (Browse further)