summaryrefslogtreecommitdiff
path: root/src/response.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/response.cc')
-rw-r--r--src/response.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/response.cc b/src/response.cc
new file mode 100644
index 0000000..3d6e439
--- /dev/null
+++ b/src/response.cc
@@ -0,0 +1,8 @@
+#include "response.h"
+#include <iostream>
+
+std::ostream &operator<<(std::ostream &os, Response r)
+{
+ const std::string nameR[] = {"OK", "WAIT", "BLOCKED", "STALLED"};
+ return os << nameR[r];
+}