diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-09-23 12:39:27 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-09-23 12:39:27 +0100 |
| commit | c2709fbe5438da124b2d493cb714a6c58720cf5b (patch) | |
| tree | 015607895cba76f9b8bcddf6fae72cb7c62e3cb3 /src/lib/util.cc | |
| parent | 365f830b4c65b2d872106a14f57d28cef4a179cd (diff) | |
Command-line option to specify servomatic_cli threads.
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index 1478bab2e..e79c7cd1c 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -518,5 +518,9 @@ colour_lut_index_to_name (int index) return ""; } - - +int +read_with_timeout (boost::asio::ip::tcp::socket* socket, uint8_t* data, int size) +{ + + return asio::read (socket, asio::buffer (data, size)); +} |
