summaryrefslogtreecommitdiff
path: root/include/socketengine.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-18 10:07:22 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-18 10:07:22 +0000
commit56cec38f3e7d3447b40076481c15e6d4a7e278d0 (patch)
tree92968b972ec14350326ad067842369cc6be7871e /include/socketengine.h
parent77a4fbd1c430767beb4ae8ac1b886d66c361f60e (diff)
Get rid of SocketEngine::Wait and array-copy, change to SocketEngine::DispatchEvents
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4944 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/socketengine.h')
-rw-r--r--include/socketengine.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/include/socketengine.h b/include/socketengine.h
index fd01b4cf8..1b68f1685 100644
--- a/include/socketengine.h
+++ b/include/socketengine.h
@@ -216,20 +216,16 @@ public:
*/
EventHandler* GetRef(int fd);
- /** Waits for an event.
+ /** Waits for events and dispatches them to handlers.
* Please note that this doesnt wait long, only
- * a couple of milliseconds. It returns a list
- * of active EventHandlers in the array fdlist
- * which the core will then dispatch events to
+ * a couple of milliseconds. It returns the number of
+ * events which occured during this call.
+ * This method will dispatch events to their handlers
* by calling their EventHandler::HandleEvent()
* methods with the neccessary EventType value.
- * @param fdlist A pointer to a set of EventHandler
- * classes. You should ensure that the array you pass
- * is at least MAX_DESCRIPTORS in size, to accomodate
- * for the maximum number of events which can occur.
* @return The number of events which have occured.
*/
- virtual int Wait(EventHandler** fdlist);
+ virtual int DispatchEvents();
/** Returns the socket engines name.
* This returns the name of the engine for use