Loading src/quic.cpp +10 −0 Changes for src/quic.cpp: 10 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -2371,6 +2371,16 @@ bool quic::hasStreamData(uint64_t stream_id) const { return !it->second.recv_buffer.empty(); } bool quic::isStreamComplete(uint64_t stream_id) const { std::lock_guard<std::mutex> lock(_quic_mutex); auto it = _streams.find(stream_id); if (it == _streams.end()) { return false; } return it->second.recv_complete; } // ============================================================================ // Frame Processing: Process individual frames // ============================================================================ Loading src/socket.h +1 −0 Changes for src/socket.h: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -572,6 +572,7 @@ namespace netplus { size_t sendStreamData(uint64_t stream_id, const uint8_t* data, size_t len, bool fin = false); size_t recvStreamData(uint64_t stream_id, uint8_t* data, size_t max_len); bool hasStreamData(uint64_t stream_id) const; bool isStreamComplete(uint64_t stream_id) const; // Connection ID management const std::vector<uint8_t>& getLocalConnectionId() const { return _local_cid; } Loading Loading
src/quic.cpp +10 −0 Changes for src/quic.cpp: 10 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -2371,6 +2371,16 @@ bool quic::hasStreamData(uint64_t stream_id) const { return !it->second.recv_buffer.empty(); } bool quic::isStreamComplete(uint64_t stream_id) const { std::lock_guard<std::mutex> lock(_quic_mutex); auto it = _streams.find(stream_id); if (it == _streams.end()) { return false; } return it->second.recv_complete; } // ============================================================================ // Frame Processing: Process individual frames // ============================================================================ Loading
src/socket.h +1 −0 Changes for src/socket.h: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -572,6 +572,7 @@ namespace netplus { size_t sendStreamData(uint64_t stream_id, const uint8_t* data, size_t len, bool fin = false); size_t recvStreamData(uint64_t stream_id, uint8_t* data, size_t max_len); bool hasStreamData(uint64_t stream_id) const; bool isStreamComplete(uint64_t stream_id) const; // Connection ID management const std::vector<uint8_t>& getLocalConnectionId() const { return _local_cid; } Loading