X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=include%2Fsocketengine.h;fp=include%2Fsocketengine.h;h=c0026bfc6f2513335b0af7ba3853a12d017cff6b;hb=96642de3b2c6bf126ce173e9c49ed64e32e4c48b;hp=bbbc7fd74946b07ec4f461d1fafc8e521fdfaa01;hpb=c6ebf05e028afbcbec2b1f1e9fdad5551967ecee;p=user%2Fhenk%2Fcode%2Finspircd.git 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.