summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-12-15 23:32:14 +0000
committerCarl Hetherington <cth@carlh.net>2015-12-15 23:32:14 +0000
commita4c879780de75f1293ffeea2366355b00d4e9459 (patch)
treead3b82393aee01ebb577727ff7219dd722dc20bf /src/tools
parente790d0d890475851a0258240f97cf822d4ee9ee7 (diff)
Try an ack on request for the batch converter to do a job.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/dcpomatic.cc3
-rw-r--r--src/tools/dcpomatic_batch.cc1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc
index 894e9329f..c1ce24eb5 100644
--- a/src/tools/dcpomatic.cc
+++ b/src/tools/dcpomatic.cc
@@ -511,6 +511,9 @@ private:
string s = _film->directory().string ();
socket.write (s.length() + 1);
socket.write ((uint8_t *) s.c_str(), s.length() + 1);
+ /* OK\0 */
+ uint8_t ok[3];
+ socket.read (ok, 3);
return;
} catch (exception& e) {
std::cout << "start batch failed: " << e.what() << "\n";
diff --git a/src/tools/dcpomatic_batch.cc b/src/tools/dcpomatic_batch.cc
index 5693c391d..109bbfca0 100644
--- a/src/tools/dcpomatic_batch.cc
+++ b/src/tools/dcpomatic_batch.cc
@@ -261,6 +261,7 @@ public:
socket->read (reinterpret_cast<uint8_t*> (buffer.get()), length);
string s (buffer.get());
_frame->start_job (s);
+ socket->write (reinterpret_cast<uint8_t const *> ("OK"), 3);
} catch (...) {
}