Add port and hostname config options

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2026-02-26 15:00:39 +01:00
committed by xytovl
parent 0f21191e9b
commit 1e6937d4a4
8 changed files with 76 additions and 6 deletions
+2 -2
View File
@@ -22,8 +22,8 @@
#include "util/u_logging.h"
#include "utils/overloaded.h"
#include "driver/configuration.h"
#include "driver/wivrn_session.h"
#include "wivrn_config.h"
#include "wivrn_ipc.h"
#include "wivrn_sockets.h"
@@ -33,7 +33,7 @@ std::unique_ptr<wivrn::TCP> wivrn::accept_connection(wivrn_session & cnx, std::s
{
wivrn_ipc_socket_monado->send(from_monado::headset_disconnected{});
wivrn::TCPListener listener(wivrn::default_port);
wivrn::TCPListener listener(configuration().port);
pollfd fds[2]{
{.fd = listener.get_fd(), .events = POLLIN},