Rework stream socket
Stream socket on server now uses the same port as the control socket. Client does not assign a port to its stream socket, instead it sends a handshake packet at the beginning, the server reads the remote port from it.
This commit is contained in:
@@ -246,7 +246,7 @@ std::unique_ptr<wivrn_session> connect_to_session(const std::vector<wivrn_discov
|
||||
}
|
||||
catch(std::exception& e)
|
||||
{
|
||||
spdlog::warn("Cannot connect to {}", service.hostname);
|
||||
spdlog::warn("Cannot connect to {}: {}", service.hostname, e.what());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,6 +100,7 @@ public:
|
||||
|
||||
virtual void render() override;
|
||||
|
||||
void operator()(to_headset::handshake&&) {};
|
||||
void operator()(to_headset::video_stream_data_shard &&);
|
||||
void operator()(to_headset::video_stream_parity_shard &&);
|
||||
void operator()(to_headset::haptics &&);
|
||||
|
||||
Reference in New Issue
Block a user