Quit if no client when connection ends
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <wivrn_sockets.h>
|
||||
|
||||
std::unique_ptr<xrt::drivers::wivrn::TCP> accept_connection(int watch_fd);
|
||||
std::unique_ptr<xrt::drivers::wivrn::TCP> accept_connection(int watch_fd, std::function<bool()> quit = std::function<bool()>());
|
||||
|
||||
Reference in New Issue
Block a user