summaryrefslogtreecommitdiffstats
path: root/src/socket
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-11 04:19:54 +0000
committerDavid Robillard <d@drobilla.net>2012-05-11 04:19:54 +0000
commitf90d64eb7d90dc03fe4215bef8d77de51ca0ae78 (patch)
treeee973145a55bb352e06d9172d7ebfb2e07d2571e /src/socket
parentf6bddf045a0d94766961b037d9d295eb12ca84f5 (diff)
downloadingen-f90d64eb7d90dc03fe4215bef8d77de51ca0ae78.tar.gz
ingen-f90d64eb7d90dc03fe4215bef8d77de51ca0ae78.tar.bz2
ingen-f90d64eb7d90dc03fe4215bef8d77de51ca0ae78.zip
Lint.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4347 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/socket')
-rw-r--r--src/socket/Socket.cpp6
-rw-r--r--src/socket/Socket.hpp2
-rw-r--r--src/socket/SocketListener.hpp2
-rw-r--r--src/socket/SocketReader.cpp4
4 files changed, 7 insertions, 7 deletions
diff --git a/src/socket/Socket.cpp b/src/socket/Socket.cpp
index 9c2a050c..97411b64 100644
--- a/src/socket/Socket.cpp
+++ b/src/socket/Socket.cpp
@@ -116,7 +116,7 @@ Socket::bind(const std::string& uri)
if (set_addr(uri) && ::bind(_sock, _addr, _addr_len) != -1) {
return true;
}
-
+
LOG(Raul::error)(Raul::fmt("Failed to bind <%1%> (%2%)\n")
% _uri % strerror(errno));
return false;
@@ -128,7 +128,7 @@ Socket::connect(const std::string& uri)
if (set_addr(uri) && ::connect(_sock, _addr, _addr_len) != -1) {
return true;
}
-
+
LOG(Raul::error)(Raul::fmt("Failed to connect <%1%> (%2%)\n")
% _uri % strerror(errno));
return false;
@@ -166,7 +166,7 @@ Socket::accept()
host, sizeof(host), NULL, 0, 0)) {
client_uri = _uri.substr(0, _uri.find(":") + 1) + host;
}
-
+
return SharedPtr<Socket>(
new Socket(_type, client_uri, client_addr, client_addr_len, conn));
}
diff --git a/src/socket/Socket.hpp b/src/socket/Socket.hpp
index e4dbb60a..8aa172cb 100644
--- a/src/socket/Socket.hpp
+++ b/src/socket/Socket.hpp
@@ -46,7 +46,7 @@ public:
}
/** Create a new unbound/unconnected socket of a given type. */
- Socket(Type t);
+ explicit Socket(Type t);
/** Wrap an existing open socket. */
Socket(Type t,
diff --git a/src/socket/SocketListener.hpp b/src/socket/SocketListener.hpp
index ca05f325..e9c27d85 100644
--- a/src/socket/SocketListener.hpp
+++ b/src/socket/SocketListener.hpp
@@ -32,7 +32,7 @@ namespace Socket {
class SocketListener : public Raul::Thread
{
public:
- SocketListener(Ingen::Shared::World& world);
+ explicit SocketListener(Ingen::Shared::World& world);
~SocketListener();
private:
diff --git a/src/socket/SocketReader.cpp b/src/socket/SocketReader.cpp
index bef14f92..80a9bd22 100644
--- a/src/socket/SocketReader.cpp
+++ b/src/socket/SocketReader.cpp
@@ -91,7 +91,7 @@ SocketReader::_run()
{
Sord::World* world = _world.rdf_world();
LV2_URID_Map* map = &_world.uri_map().urid_map_feature()->urid_map;
-
+
// Use <path:> as base URI so e.g. </foo/bar> will be a path
SordNode* base_uri = sord_new_uri(
world->c_obj(), (const uint8_t*)"path:");
@@ -130,7 +130,7 @@ SocketReader::_run()
}
serd_reader_start_stream(reader, f, (const uint8_t*)"(socket)", false);
-
+
// Make an AtomReader to call Ingen Interface methods based on Atom
Shared::AtomReader ar(
_world.uri_map(), _world.uris(), _world.forge(), _iface);