mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Improved connection robustness and diconnection/connection behaviors
(added connection rejection to streamer).
This commit is contained in:
@@ -24,13 +24,15 @@ public:
|
||||
|
||||
class NetworkStream : public Stream
|
||||
{
|
||||
friend class StreamerResponseListener;
|
||||
|
||||
public:
|
||||
|
||||
NetworkStream();
|
||||
void open(const std::string &nameconnection);
|
||||
void close();
|
||||
void connect(const std::string &nameconnection);
|
||||
bool connected() const;
|
||||
void disconnect();
|
||||
|
||||
void setConfig(NetworkToolkit::StreamConfig conf);
|
||||
void update() override;
|
||||
|
||||
glm::ivec2 resolution() const;
|
||||
@@ -43,7 +45,8 @@ private:
|
||||
IpEndpointName streamer_address_;
|
||||
StreamerResponseListener listener_;
|
||||
UdpListeningReceiveSocket *receiver_;
|
||||
std::atomic<bool> confirmed_;
|
||||
std::atomic<bool> received_config_;
|
||||
std::atomic<bool> connected_;
|
||||
|
||||
NetworkToolkit::StreamConfig config_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user