diff options
author | Sadie Powell <sadie@witchery.services> | 2024-01-23 15:28:23 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-01-23 15:28:23 +0000 |
commit | a6a0f6c44780c839b2269f4f29a26ecfdbd95544 (patch) | |
tree | d4d1fded5c14350eb003a665ca8de500a0440cea /include/sockets.h | |
parent | 398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff) |
Improve the layout of types that inherit from another type.
Diffstat (limited to 'include/sockets.h')
-rw-r--r-- | include/sockets.h | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/include/sockets.h b/include/sockets.h index fc10fec4e..e7311e727 100644 --- a/include/sockets.h +++ b/include/sockets.h @@ -126,7 +126,8 @@ public: }; }; -class CoreExport SocketException : public CoreException +class CoreExport SocketException + : public CoreException { public: /** Constructor for socket exceptions @@ -286,7 +287,8 @@ public: virtual void ProcessError(); }; -class CoreExport BufferedSocket : public virtual Socket +class CoreExport BufferedSocket + : public virtual Socket { protected: /* Things read from the socket */ @@ -333,7 +335,8 @@ public: int WriteBufferLen() const; }; -class CoreExport BinarySocket : public virtual Socket +class CoreExport BinarySocket + : public virtual Socket { protected: struct DataBlock @@ -378,7 +381,8 @@ public: virtual bool Read(const char *buffer, size_t l); }; -class CoreExport ListenSocket : public virtual Socket +class CoreExport ListenSocket + : public virtual Socket { public: /** Constructor @@ -402,7 +406,8 @@ public: virtual ClientSocket *OnAccept(int fd, const sockaddrs &addr) = 0; }; -class CoreExport ConnectionSocket : public virtual Socket +class CoreExport ConnectionSocket + : public virtual Socket { public: /* Sockaddrs for connection ip/port */ @@ -435,7 +440,8 @@ public: virtual void OnError(const Anope::string &error); }; -class CoreExport ClientSocket : public virtual Socket +class CoreExport ClientSocket + : public virtual Socket { public: /* Listen socket this connection came from */ @@ -469,7 +475,8 @@ public: virtual void OnError(const Anope::string &error); }; -class CoreExport Pipe : public Socket +class CoreExport Pipe + : public Socket { public: /** The FD of the write pipe |