summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Network/NullNATTraverser.cpp')
-rw-r--r--Swiften/Network/NullNATTraverser.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/Swiften/Network/NullNATTraverser.cpp b/Swiften/Network/NullNATTraverser.cpp
index 8cb35cd..43fcd08 100644
--- a/Swiften/Network/NullNATTraverser.cpp
+++ b/Swiften/Network/NullNATTraverser.cpp
@@ -22,8 +22,11 @@ class NullNATTraversalGetPublicIPRequest : public NATTraversalGetPublicIPRequest
}
- virtual void run() {
+ virtual void start() {
eventLoop->postEvent(boost::bind(boost::ref(onResult), boost::optional<HostAddress>()));
}
+ virtual void stop() {
+ }
+
private:
EventLoop* eventLoop;
@@ -35,8 +38,11 @@ class NullNATTraversalForwardPortRequest : public NATTraversalForwardPortRequest
}
- virtual void run() {
+ virtual void start() {
eventLoop->postEvent(boost::bind(boost::ref(onResult), boost::optional<NATPortMapping>()));
}
+ virtual void stop() {
+ }
+
private:
EventLoop* eventLoop;
@@ -48,8 +54,11 @@ class NullNATTraversalRemovePortForwardingRequest : public NATTraversalRemovePor
}
- virtual void run() {
+ virtual void start() {
eventLoop->postEvent(boost::bind(boost::ref(onResult), boost::optional<bool>(true)));
}
+ virtual void stop() {
+ }
+
private:
EventLoop* eventLoop;