X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=blobdiff_plain;f=source%2Fnet%2Fwindows%2Funix.cpp;fp=source%2Fnet%2Fwindows%2Funix.cpp;h=2aa885708da84efb9c33afde5b4e5fa0639fdcb3;hp=0000000000000000000000000000000000000000;hb=88bbb4039aa274c7f41ebe3a18085b63427e5475;hpb=6f6845971a21c2d7e04b87925f5e657f0f20ca0d diff --git a/source/net/windows/unix.cpp b/source/net/windows/unix.cpp new file mode 100644 index 0000000..2aa8857 --- /dev/null +++ b/source/net/windows/unix.cpp @@ -0,0 +1,29 @@ +#include +#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