Commit graph

12 commits

Author SHA1 Message Date
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)