summaryrefslogtreecommitdiff
path: root/src/memory.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-08-31 19:33:02 +0100
committerMaxime Coste <frrrwww@gmail.com>2016-09-04 11:17:35 +0100
commit563497ade7ee89af625c3c897d792fe9b71e0992 (patch)
tree0e29bf4e405741b00fe7751c98cad39e63b3fa48 /src/memory.hh
parent044a6ce8609b12fff9638e88112e92b183578574 (diff)
Use proper buffering when reading remote messages
Messages now have their size in a header, along with their type and are only executed once fully received. We dont block anymore while trying to read a full message.
Diffstat (limited to 'src/memory.hh')
-rw-r--r--src/memory.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/memory.hh b/src/memory.hh
index fb36b3e7..19fa6a40 100644
--- a/src/memory.hh
+++ b/src/memory.hh
@@ -32,6 +32,7 @@ enum class MemoryDomain
WordDB,
Selections,
History,
+ Remote,
Count
};
@@ -59,6 +60,7 @@ inline const char* domain_name(MemoryDomain domain)
case MemoryDomain::Client: return "Client";
case MemoryDomain::Selections: return "Selections";
case MemoryDomain::History: return "History";
+ case MemoryDomain::Remote: return "Remote";
case MemoryDomain::Count: break;
}
kak_assert(false);