#include "dns.h"
#include "inspircd_config.h"
#include "socket.h"
+#include "inspsocket.h"
/**
* States which a socket may be in
class InspSocket;
class InspIRCd;
+using irc::sockets::insp_sockaddr;
+using irc::sockets::insp_inaddr;
+using irc::sockets::insp_ntoa;
+using irc::sockets::insp_aton;
+
/**
* InspSocket is an extendable socket class which modules
* can use for TCP socket support. It is fully integrated
* and use the InspSocket constructors to establish connections
* and bindings.
*/
-class InspSocket : public Extensible
+class InspSocket : public EventHandler
{
public:
InspIRCd* Instance;
std::deque<std::string> outbuffer;
- /**
- * The file descriptor of this socket
- */
- int fd;
-
/**
* The hostname connected to
*/
* memory reclaimed.
*/
void MarkAsClosed();
+
+ void HandleEvent(EventType et);
+
+ bool Readable();
};
#endif