Use a different port for the client and the server

This commit is contained in:
Guillaume Meunier
2022-11-13 14:45:45 +01:00
parent 5c11ae256a
commit d8811b6b93
3 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ using namespace std::chrono_literals;
wivrn_connection::wivrn_connection(TCP && tcp, in6_addr address) :
control(std::move(tcp))
{
stream.bind(stream_port);
stream.connect(address, stream_port);
stream.bind(stream_server_port);
stream.connect(address, stream_client_port);
}
void wivrn_connection::send_control(const to_headset::control_packets & packet)