Connection manager seems to work...

This commit is contained in:
brunoherbelin
2020-10-23 19:01:44 +02:00
parent 43f444f07b
commit 509416d5a0
2 changed files with 33 additions and 29 deletions

View File

@@ -7,6 +7,8 @@
#include "NetworkToolkit.h"
#define ALIVE 3
class ConnectionRequestListener : public osc::OscPacketListener {
protected:
@@ -20,14 +22,14 @@ struct ConnectionInfo {
int port_handshake;
int port_stream_send;
int port_stream_receive;
int status;
int alive;
ConnectionInfo () {
address_ = "localhost";
port_handshake = HANDSHAKE_PORT;
port_stream_send = STREAM_REQUEST_PORT;
port_stream_receive = STREAM_RESPONSE_PORT;
status = 0;
alive = ALIVE;
}
inline ConnectionInfo& operator = (const ConnectionInfo& o)