diff --git a/libraries/networking/src/udt/Connection.cpp b/libraries/networking/src/udt/Connection.cpp new file mode 100644 index 0000000000..c28a5f6ed0 --- /dev/null +++ b/libraries/networking/src/udt/Connection.cpp @@ -0,0 +1,31 @@ +// +// Connection.cpp +// +// +// Created by Clement on 7/27/15. +// Copyright 2015 High Fidelity, Inc. +// +// Distributed under the Apache License, Version 2.0. +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html +// + +#include "Connection.h" + +#include "../HifiSockAddr.h" +#include "ControlPacket.h" +#include "Packet.h" +#include "Socket.h" + +using namespace udt; + +Connection::Connection(Socket* parentSocket, HifiSockAddr destination) { + +} + +void Connection::send(std::unique_ptr packet) { + +} + +void Connection::processControl(std::unique_ptr controlPacket) { + +} diff --git a/libraries/networking/src/udt/Connection.h b/libraries/networking/src/udt/Connection.h new file mode 100644 index 0000000000..ea49edd1e7 --- /dev/null +++ b/libraries/networking/src/udt/Connection.h @@ -0,0 +1,41 @@ +// +// Connection.h +// +// +// Created by Clement on 7/27/15. +// Copyright 2015 High Fidelity, Inc. +// +// Distributed under the Apache License, Version 2.0. +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html +// + +#ifndef hifi_Connection_h +#define hifi_Connection_h + +#include + +#include "SendQueue.h" + +class HifiSockAddr; + +namespace udt { + +class ControlPacket; +class Packet; +class Socket; + +class Connection { + +public: + Connection(Socket* parentSocket, HifiSockAddr destination); + + void send(std::unique_ptr packet); + void processControl(std::unique_ptr controlPacket); + +private: + std::unique_ptr _sendQueue; +}; + +} + +#endif // hifi_Connection_h diff --git a/libraries/networking/src/udt/SendQueue.cpp b/libraries/networking/src/udt/SendQueue.cpp index 9046e05f26..c52621dccd 100644 --- a/libraries/networking/src/udt/SendQueue.cpp +++ b/libraries/networking/src/udt/SendQueue.cpp @@ -14,7 +14,6 @@ #include #include -#include #include diff --git a/libraries/networking/src/udt/SendQueue.h b/libraries/networking/src/udt/SendQueue.h index fa73c14578..9a46f0f119 100644 --- a/libraries/networking/src/udt/SendQueue.h +++ b/libraries/networking/src/udt/SendQueue.h @@ -15,15 +15,14 @@ #include #include -#include -#include +#include +#include +#include #include "../HifiSockAddr.h" #include "SeqNum.h" -class QTimer; - namespace udt { class Socket;