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:
@@ -64,7 +64,7 @@ class wivrn_session : public std::enable_shared_from_this<wivrn_session>
|
||||
|
||||
std::shared_ptr<audio_device> audio_handle;
|
||||
|
||||
wivrn_session(TCP && tcp, in6_addr & address);
|
||||
wivrn_session(TCP && tcp);
|
||||
|
||||
public:
|
||||
static wivrn_system_devices *
|
||||
@@ -73,6 +73,7 @@ public:
|
||||
clock_offset
|
||||
get_offset();
|
||||
|
||||
void operator()(from_headset::handshake&&) {}
|
||||
void operator()(from_headset::headset_info_packet &&);
|
||||
void operator()(from_headset::tracking &&);
|
||||
void operator()(from_headset::inputs &&);
|
||||
|
||||
Reference in New Issue
Block a user