summaryrefslogtreecommitdiffstats
path: root/src/socket/SocketWriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket/SocketWriter.cpp')
-rw-r--r--src/socket/SocketWriter.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/socket/SocketWriter.cpp b/src/socket/SocketWriter.cpp
index f66606be..19a1c713 100644
--- a/src/socket/SocketWriter.cpp
+++ b/src/socket/SocketWriter.cpp
@@ -85,5 +85,15 @@ SocketWriter::write(const LV2_Atom* msg)
return true;
}
+void
+SocketWriter::bundle_end()
+{
+ AtomWriter::bundle_end();
+
+ // Send a NULL byte to indicate end of bundle
+ const char end[] = { 0 };
+ send(fd(), end, 1, MSG_NOSIGNAL);
+}
+
} // namespace Socket
} // namespace Ingen