windows: Improve stability by enforce no-copy

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2020-01-23 04:01:44 +01:00
parent fb2732a570
commit f9acd6984a
3 changed files with 16 additions and 1 deletions
+4
View File
@@ -232,6 +232,10 @@ void datapath::windows::server::_watcher()
}
}
datapath::windows::server::server() {}
datapath::windows::server::~server() {}
/*datapath::error datapath::windows::server::accept(std::shared_ptr<datapath::isocket>& socket)
{
std::unique_lock<std::mutex> ul(this->lock);
+8 -1
View File
@@ -60,6 +60,13 @@ namespace datapath {
void _watcher();
public:
server();
virtual ~server();
server(const server&) = delete;
server& operator=(const server&) = delete;
public /*virtual override*/:
virtual datapath::error close() override;
@@ -68,4 +75,4 @@ namespace datapath {
datapath::permissions permissions, size_t max_clients);
};
} // namespace windows
} // namespace datapath
} // namespace datapath
+4
View File
@@ -54,6 +54,10 @@ namespace datapath {
virtual ~socket();
public:
socket(const socket&) = delete;
socket& operator=(const socket&) = delete;
public /*virtual override*/:
virtual bool good() override;