]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/windows/unix.cpp
Move most platform-specific code into overlay directories
[libs/net.git] / source / net / windows / unix.cpp
diff --git a/source/net/windows/unix.cpp b/source/net/windows/unix.cpp
new file mode 100644 (file)
index 0000000..2aa8857
--- /dev/null
@@ -0,0 +1,29 @@
+#include <stdexcept>
+#include "platform_api.h"
+#include "sockaddr_private.h"
+#include "unix.h"
+
+using namespace std;
+
+namespace Msp {
+namespace Net {
+
+UnixAddr::UnixAddr(const SysAddr &):
+       abstract(false)
+{
+       throw logic_error("AF_UNIX not supported");
+}
+
+UnixAddr::UnixAddr(const string &p, bool a):
+       path(p),
+       abstract(a)
+{
+}
+
+SockAddr::SysAddr UnixAddr::to_sys() const
+{
+       throw logic_error("AF_UNIX not supported");
+}
+
+} // namespace Net
+} // namespace Msp