X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fsocketengine.h;h=a788618a27a47ceb6a5d6f6c2018c40396ccb26d;hb=2329d59b09cdc05b0b403f7d313df65492e1813b;hp=734aa1938a5d0f85803c07f469e862df0e19c27c;hpb=3a6885d6a1d30f6e2eb9b1fcd20e949768267318;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/socketengine.h b/include/socketengine.h index 734aa1938..a788618a2 100644 --- a/include/socketengine.h +++ b/include/socketengine.h @@ -35,13 +35,12 @@ const char X_LISTEN = 1; const char X_ESTAB_CLIENT = 2; const char X_ESTAB_MODULE = 3; const char X_ESTAB_DNS = 4; -const char X_ESTAB_CLASSDNS = 5; /** * To indicate that a socket is readable, we * mask its top bit with this X_READBIT value. * The socket engine can handle two types of - * socket, readable and writeable (error sockets + * socket, readable and writeable (;error sockets * are dealt with when read() and write() return * negative or zero values). */ @@ -55,6 +54,15 @@ const char X_READBIT = 0x80; * from system to system and upon the config * settings chosen by the server admin. The current * version supports select, epoll and kqueue. + * The configure script will enable a socket engine + * based upon what OS is detected, and will derive + * a class from SocketEngine based upon what it finds. + * The derived classes file will also implement a + * classfactory, SocketEngineFactory, which will + * create a derived instance of SocketEngine using + * polymorphism so that the core and modules do not + * have to be aware of which SocketEngine derived + * class they are using. */ class SocketEngine : public Extensible {