summaryrefslogtreecommitdiffstats
path: root/src/socket
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-22 03:30:42 +0000
committerDavid Robillard <d@drobilla.net>2012-05-22 03:30:42 +0000
commitb1d4027b58465d9cc31d6cb1be05a7ff4f202711 (patch)
treeb1b7e9d1379fc16c5f451fda7afff0d2bc071e18 /src/socket
parente3b0886bfbd12f65450d4b302371f07f511458c3 (diff)
downloadingen-b1d4027b58465d9cc31d6cb1be05a7ff4f202711.tar.gz
ingen-b1d4027b58465d9cc31d6cb1be05a7ff4f202711.tar.bz2
ingen-b1d4027b58465d9cc31d6cb1be05a7ff4f202711.zip
More work on test suite.
Clean up, simplify, and shrink event code. Support disconnect_all via Atom protocol. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4432 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/socket')
-rw-r--r--src/socket/SocketWriter.cpp3
-rw-r--r--src/socket/SocketWriter.hpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/socket/SocketWriter.cpp b/src/socket/SocketWriter.cpp
index 9a9decd7..c375ae16 100644
--- a/src/socket/SocketWriter.cpp
+++ b/src/socket/SocketWriter.cpp
@@ -76,12 +76,13 @@ SocketWriter::~SocketWriter()
sratom_free(_sratom);
}
-void
+bool
SocketWriter::write(const LV2_Atom* msg)
{
sratom_write(_sratom, &_map.urid_unmap_feature()->urid_unmap, 0,
NULL, NULL, msg->type, msg->size, LV2_ATOM_BODY(msg));
serd_writer_finish(_writer);
+ return true;
}
} // namespace Socket
diff --git a/src/socket/SocketWriter.hpp b/src/socket/SocketWriter.hpp
index 2e27ea98..2a17d843 100644
--- a/src/socket/SocketWriter.hpp
+++ b/src/socket/SocketWriter.hpp
@@ -43,7 +43,7 @@ public:
~SocketWriter();
- void write(const LV2_Atom* msg);
+ bool write(const LV2_Atom* msg);
int fd() { return _socket->fd(); }
Raul::URI uri() const { return _uri; }