summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Network/UDPSocketFactory.h')
-rw-r--r--Swiften/Network/UDPSocketFactory.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/Swiften/Network/UDPSocketFactory.h b/Swiften/Network/UDPSocketFactory.h
new file mode 100644
index 0000000..33dd78c
--- /dev/null
+++ b/Swiften/Network/UDPSocketFactory.h
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) 2012 Yoann Blein
+ * Licensed under the simplified BSD license.
+ * See Documentation/Licenses/BSD-simplified.txt for more information.
+ */
+
+#pragma once
+
+#include <boost/shared_ptr.hpp>
+
+namespace Swift {
+ class UDPSocket;
+
+ class UDPSocketFactory {
+ public:
+ virtual ~UDPSocketFactory();
+
+ virtual boost::shared_ptr<UDPSocket> createUDPSocket() = 0;
+ };
+}