diff options
author | Adam <Adam@anope.org> | 2012-02-18 15:04:26 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-02-18 15:04:26 -0500 |
commit | ee5cd8493e34a1c049066ead25e9094b30cd49b5 (patch) | |
tree | 846c6dcd9bb2c4d721c6290a9b9d6b6ed880acdb /include/sockets.h | |
parent | 41e8d276023e8fefc22fb89c2f81ae17b8222155 (diff) |
Use C++11's explicit override feature if available
Diffstat (limited to 'include/sockets.h')
-rw-r--r-- | include/sockets.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/sockets.h b/include/sockets.h index a7a8bb257..16cd10a1a 100644 --- a/include/sockets.h +++ b/include/sockets.h @@ -272,12 +272,12 @@ class CoreExport BufferedSocket : public virtual Socket /** Called when there is something to be received for this socket * @return true on success, false to drop this socket */ - bool ProcessRead(); + bool ProcessRead() anope_override; /** Called when the socket is ready to be written to * @return true on success, false to drop this socket */ - bool ProcessWrite(); + bool ProcessWrite() anope_override; /** Called with a line received from the socket * @param buf The line @@ -327,12 +327,12 @@ class CoreExport BinarySocket : public virtual Socket /** Called when there is something to be received for this socket * @return true on success, false to drop this socket */ - bool ProcessRead(); + bool ProcessRead() anope_override; /** Called when the socket is ready to be written to * @return true on success, false to drop this socket */ - bool ProcessWrite(); + bool ProcessWrite() anope_override; /** Write data to the socket * @param buffer The data to write @@ -395,12 +395,12 @@ class CoreExport ConnectionSocket : public virtual Socket * Used to determine whether or not this socket is connected yet. * @return true to continue to call ProcessRead/ProcessWrite, false to not continue */ - bool Process(); + bool Process() anope_override; /** Called when there is an error for this socket * @return true on success, false to drop this socket */ - void ProcessError(); + void ProcessError() anope_override; /** Called on a successful connect */ @@ -430,12 +430,12 @@ class CoreExport ClientSocket : public virtual Socket * Used to determine whether or not this socket is connected yet. * @return true to continue to call ProcessRead/ProcessWrite, false to not continue */ - bool Process(); + bool Process() anope_override; /** Called when there is an error for this socket * @return true on success, false to drop this socket */ - void ProcessError(); + void ProcessError() anope_override; /** Called when a client has been accepted() successfully. */ @@ -464,15 +464,15 @@ class CoreExport Pipe : public Socket /** Called when data is to be read */ - bool ProcessRead(); + bool ProcessRead() anope_override; /** Called when this pipe needs to be woken up */ void Notify(); - /** Should be overloaded to do something useful + /** Overload to do something useful */ - virtual void OnNotify(); + virtual void OnNotify() = 0; }; extern uint32_t TotalRead; |