diff options
Diffstat (limited to 'src/socket/Socket.hpp')
-rw-r--r-- | src/socket/Socket.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket/Socket.hpp b/src/socket/Socket.hpp index 1406d87e..ed2ddb74 100644 --- a/src/socket/Socket.hpp +++ b/src/socket/Socket.hpp @@ -30,13 +30,13 @@ namespace Socket { /** A safe and simple interface for UNIX or TCP sockets. */ class Socket : public Raul::Noncopyable { public: - enum Type { + enum class Type { UNIX, TCP }; static Type type_from_uri(const Raul::URI uri) { - return (uri.scheme() == "unix") ? UNIX : TCP; + return (uri.scheme() == "unix") ? Type::UNIX : Type::TCP; } /** Create a new unbound/unconnected socket of a given type. */ |