From fcf7b16cbc380b2e4c3a0fdc2e4291fd31b81ba9 Mon Sep 17 00:00:00 2001 From: Nicolas 'Pixel' Noble Date: Thu, 17 Jan 2013 01:23:09 -0800 Subject: Making name resolution in setLocal() and connect() interruptible... --- includes/Socket.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'includes') diff --git a/includes/Socket.h b/includes/Socket.h index e5a9f21..2a6a95d 100644 --- a/includes/Socket.h +++ b/includes/Socket.h @@ -14,6 +14,8 @@ namespace Balau { +struct DNSRequest; + class Socket : public Handle { public: @@ -33,6 +35,7 @@ class Socket : public Handle { bool gotW() { return m_evtW->gotSignal(); } IO accept() throw (GeneralException); bool listen(); + bool resolved(); private: Socket(int fd); class SocketEvent : public Events::BaseEvent { @@ -55,6 +58,7 @@ class Socket : public Handle { bool m_listening = false; sockaddr_in6 m_localAddr, m_remoteAddr; SocketEvent * m_evtR, * m_evtW; + DNSRequest * m_req = NULL; }; class ListenerBase : public Task { -- cgit v1.2.3