summaryrefslogtreecommitdiff
path: root/includes/Socket.h
diff options
context:
space:
mode:
authorNicolas 'Pixel' Noble <pixel@nobis-crew.org>2013-01-17 01:23:09 -0800
committerNicolas 'Pixel' Noble <pixel@nobis-crew.org>2013-01-17 01:23:09 -0800
commitfcf7b16cbc380b2e4c3a0fdc2e4291fd31b81ba9 (patch)
treef642bfe310364e09b0407772614ac31d1db60031 /includes/Socket.h
parent9320d6bd005afb4beb551cac2b3963255cff5e37 (diff)
Making name resolution in setLocal() and connect() interruptible...
Diffstat (limited to 'includes/Socket.h')
-rw-r--r--includes/Socket.h4
1 files changed, 4 insertions, 0 deletions
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<Socket> 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 {