]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/socket.h
Tidy up some of the internals a bit, making things a bit more extensible and future...
[user/henk/code/inspircd.git] / include / socket.h
index a26c1256d2db4f2967aa209dc442ed4827acf3cf..556ee1a9045a4495b868b88d22ac9426dd44cdcd 100644 (file)
@@ -139,6 +139,8 @@ namespace irc
        }
 }
 
+
+
 /** This class handles incoming connections on client ports.
  * It will create a new User for every valid connection
  * and assign it a file descriptor.
@@ -200,7 +202,22 @@ class CoreExport ListenSocket : public EventHandler
        {
                return bind_addr;
        }
+
+       /** Handles sockets internals crap of a connection, convenience wrapper really
+        */
+       void AcceptInternal();
+
+       /** Called when a new connection has successfully been accepted on this listener.
+        * @param ipconnectedto The IP address the connection arrived on
+        * @param fd The file descriptor of the new connection
+        */
+       virtual void OnAcceptReady(const std::string &ipconnectedto, int fd);
 };
 
+//class CoreExport ListenSocketClient : public ListenSocket
+//{
+//
+//}
+
 #endif