/* * Copyright (c) 2011 Isode Limited. * Licensed under the simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ #pragma once #include #include namespace Swift { class NullNATTraversalInterface : public NATTraversalInterface { public: virtual bool isAvailable() { return true; } virtual boost::optional getPublicIP() { return boost::optional(); } virtual boost::optional addPortForward(int, int) { return boost::optional(); } virtual bool removePortForward(const NATPortMapping&) { return false; } }; }