增加windows多设备投屏

This commit is contained in:
huanglinhuan
2025-12-19 15:28:38 +08:00
parent 16a066ac94
commit 2b47c4c2f3
3 changed files with 38 additions and 15 deletions

View File

@@ -21,10 +21,10 @@ public:
NetworkSender();
~NetworkSender();
bool Initialize(const std::string& ip, int port);
bool Initialize(const std::vector<std::string>& ips, int port);
bool SendFrame(const std::vector<uint8_t>& data, uint64_t timestamp, int width, int height, bool isKeyFrame);
private:
SOCKET socket_ = INVALID_SOCKET;
sockaddr_in destAddr_;
std::vector<sockaddr_in> destAddrs_;
};