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:
@@ -31,6 +31,8 @@ class wivrn_session
|
||||
typed_socket<TCP, to_headset::control_packets, from_headset::control_packets> control;
|
||||
typed_socket<UDP, to_headset::stream_packets, from_headset::stream_packets> stream;
|
||||
|
||||
void handshake();
|
||||
|
||||
public:
|
||||
std::variant<in_addr, in6_addr> address;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user