diff options
Diffstat (limited to 'Swiften/Network/NetworkEnvironment.h')
-rw-r--r-- | Swiften/Network/NetworkEnvironment.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Swiften/Network/NetworkEnvironment.h b/Swiften/Network/NetworkEnvironment.h new file mode 100644 index 0000000..fbff0cb --- /dev/null +++ b/Swiften/Network/NetworkEnvironment.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2011 Tobias Markmann + * Licensed under the simplified BSD license. + * See Documentation/Licenses/BSD-simplified.txt for more information. + */ + +#pragma once + +#include <vector> + +#include <Swiften/Base/boost_bsignals.h> +#include <Swiften/Network/NetworkInterface.h> + +namespace Swift { + class NetworkEnvironment { + public: + virtual ~NetworkEnvironment(); + + virtual std::vector<NetworkInterface> getNetworkInterfaces() const = 0; + + HostAddress getLocalAddress() const; + }; +} |