diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/socket.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/socket.h b/include/socket.h index 105984f74..556ee1a90 100644 --- a/include/socket.h +++ b/include/socket.h @@ -202,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 |