From 96642de3b2c6bf126ce173e9c49ed64e32e4c48b Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Thu, 11 Aug 2016 11:23:38 +0200 Subject: Update description of class EventHandler Readable() and Writeable() was removed long ago --- include/socketengine.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/socketengine.h b/include/socketengine.h index bbbc7fd74..c0026bfc6 100644 --- a/include/socketengine.h +++ b/include/socketengine.h @@ -140,13 +140,10 @@ enum EventMask * must then be added to SocketEngine using the method * SocketEngine::AddFd(), after which point the derived * class will receive events to its OnEventHandler*() methods. - * The derived class should also implement one of Readable() - * and Writeable(). In the current implementation, only - * Readable() is used. If this returns true, the socketengine - * inserts a readable socket. If it is false, the socketengine - * inserts a writeable socket. The derived class should never - * change the value this function returns without first - * deleting the socket from the socket engine. The only + * The event mask passed to SocketEngine::AddFd() determines + * what events the EventHandler gets notified about and with + * what semantics. SocketEngine::ChangeEventMask() can be + * called to update the event mask later. The only * requirement beyond this for an event handler is that it * must have a file descriptor. What this file descriptor * is actually attached to is completely up to you. -- cgit v1.2.3