Work-in progress: connection manager now used in Streamer and

NetworkSource to identify possible connections, and exchange streaming
configuration.
This commit is contained in:
brunoherbelin
2020-10-24 23:53:11 +02:00
parent db0892d25b
commit 7246dfa08e
13 changed files with 459 additions and 519 deletions

View File

@@ -20,17 +20,17 @@ struct ConnectionInfo {
std::string address;
int port_handshake;
int port_stream_send;
int port_stream_receive;
int port_stream_request;
int port_osc;
std::string name;
int alive;
ConnectionInfo () {
address = "127.0.0.1";
port_handshake = HANDSHAKE_PORT;
port_stream_send = STREAM_REQUEST_PORT;
port_stream_receive = STREAM_RESPONSE_PORT;
name = "user@localhost";
port_stream_request = STREAM_REQUEST_PORT;
port_osc = OSC_DIALOG_PORT;
name = "";
alive = ALIVE;
}
@@ -39,8 +39,8 @@ struct ConnectionInfo {
if (this != &o) {
this->address = o.address;
this->port_handshake = o.port_handshake;
this->port_stream_send = o.port_stream_send;
this->port_stream_receive = o.port_stream_receive;
this->port_stream_request = o.port_stream_request;
this->port_osc = o.port_osc;
this->name = o.name;
}
return *this;