]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/socket.h
add <whowas> config option to control whowas behaviour. *may break*
[user/henk/code/inspircd.git] / include / socket.h
index c00c7f1318744fdf8b2ccc8081e6b6ca20ac5a3b..6264b196f3ab78de6d56ebc965bd818b6cd6404a 100644 (file)
@@ -138,13 +138,23 @@ namespace irc
        };
 };
 
+/** This class handles incoming connections on client ports.
+ * It will create a new userrec for every valid connection
+ * and assign it a file descriptor.
+ */
 class ListenSocket : public EventHandler
 {
  protected:
+       /** The creator/owner of this object
+        */
        InspIRCd* ServerInstance;
  public:
+       /** Create a new listening socket
+        */
        ListenSocket(InspIRCd* Instance, int sockfd, irc::sockets::insp_sockaddr client, irc::sockets::insp_sockaddr server, int port, char* addr);
-       void HandleEvent(EventType et);
+       /** Handle an I/O event
+        */
+       void HandleEvent(EventType et, int errornum = 0);
 };
 
 #endif