NCBI C++ ToolKit
Public Member Functions | Public Attributes | List of all members
SH2S_IoStream Struct Reference

Search Toolkit Book for SH2S_IoStream

#include "ncbi_http2_session_impl.hpp"
(Private to src/connect.)

+ Collaboration diagram for SH2S_IoStream:

Public Member Functions

 SH2S_IoStream (TH2S_WeakResponseQueue q)
 
ssize_t DataSourceRead (void *session, uint8_t *buf, size_t length, uint32_t *data_flags)
 

Public Attributes

TH2S_WeakResponseQueue response_queue
 
int32_t stream_id = 0
 
bool in_progress = true
 
size_t sent = 0
 
queue< TH2S_Datapending
 
bool eof = false
 
CHttpHeaders::THeaders headers
 

Detailed Description

Definition at line 148 of file ncbi_http2_session_impl.hpp.

Constructor & Destructor Documentation

◆ SH2S_IoStream()

SH2S_IoStream::SH2S_IoStream ( TH2S_WeakResponseQueue  q)
inline

Definition at line 158 of file ncbi_http2_session_impl.hpp.

Member Function Documentation

◆ DataSourceRead()

ssize_t SH2S_IoStream::DataSourceRead ( void *  session,
uint8_t buf,
size_t  length,
uint32_t data_flags 
)

Definition at line 259 of file ncbi_http2_session.cpp.

References _ASSERT, buf, eof, H2S_SESSION_TRACE, in_progress, min(), pending, response_queue, and sent.

Member Data Documentation

◆ eof

bool SH2S_IoStream::eof = false

Definition at line 155 of file ncbi_http2_session_impl.hpp.

Referenced by DataSourceRead().

◆ headers

CHttpHeaders::THeaders SH2S_IoStream::headers

Definition at line 156 of file ncbi_http2_session_impl.hpp.

◆ in_progress

bool SH2S_IoStream::in_progress = true

Definition at line 152 of file ncbi_http2_session_impl.hpp.

Referenced by DataSourceRead().

◆ pending

queue<TH2S_Data> SH2S_IoStream::pending

Definition at line 154 of file ncbi_http2_session_impl.hpp.

Referenced by DataSourceRead().

◆ response_queue

TH2S_WeakResponseQueue SH2S_IoStream::response_queue

Definition at line 150 of file ncbi_http2_session_impl.hpp.

Referenced by DataSourceRead().

◆ sent

size_t SH2S_IoStream::sent = 0

Definition at line 153 of file ncbi_http2_session_impl.hpp.

Referenced by DataSourceRead().

◆ stream_id

int32_t SH2S_IoStream::stream_id = 0

Definition at line 151 of file ncbi_http2_session_impl.hpp.


The documentation for this struct was generated from the following files:
Modified on Wed Apr 17 13:08:04 2024 by modify_doxy.py rev. 669887