Search Toolkit Book for SNetStorageObjectRPC::SIState
Definition at line 535 of file netstorage_rpc.cpp.
◆ SIState() ◆ Abort() void SNetStorageObjectRPC::SIState::Abort ( void ) overridevirtual ◆ Close() void SNetStorageObjectRPC::SIState::Close ( void ) overridevirtual ◆ Eof() bool SNetStorageObjectRPC::SIState::Eof ( void ) overridevirtual ◆ GetLoc() string SNetStorageObjectRPC::SIState::GetLoc ( void ) const inlineoverridevirtual ◆ PendingCount() ERW_Result SNetStorageObjectRPC::SIState::PendingCount ( size_t * count ) overridevirtualVia parameter "count" (which is guaranteed to be supplied non-NULL) return the number of bytes that are ready to be read from the input device without blocking.
Return eRW_Success if the number of pending bytes has been stored at the location pointed to by "count". Return eRW_NotImplemented if the number cannot be determined. Otherwise, return other eRW_... condition to reflect the problem ("*count" does not need to be updated in the case of non-eRW_Success). Note that if reporting 0 bytes ready, the method may return either both eRW_Success and zero "*count", or return eRW_NotImplemented alone.
Implements IReader.
Definition at line 1285 of file netstorage_rpc.cpp.
References count, and eRW_Success.
◆ Read() ERW_Result SNetStorageObjectRPC::SIState::Read ( void * buf, size_t count, size_t * bytes_read ) overridevirtualRead as many as "count" bytes into a buffer pointed to by the "buf" argument.
Always store the number of bytes actually read (0 if read none) via the pointer "bytes_read", if provided non-NULL. Return non-eRW_Success code if EOF / error condition has been encountered during the operation (some data may have been read, nevertheless, and reflected in "*bytes_read"). Special case: if "count" is passed as 0, then the value of "buf" must be ignored, and no change should be made to the state of the input device (but may return non-eRW_Success to indicate that the input device has already been in an error condition).
Implements IReader.
Definition at line 1097 of file netstorage_rpc.cpp.
References SNetStorageObjectRPC::Abort(), CUTTPReader::eChunk, CUTTPReader::eChunkPart, CUTTPReader::eControlSymbol, CUTTPReader::eEndOfBuffer, eRW_Eof, eRW_Success, SNetStorageObjectRPC::SContext::locator, SNetStorageObjectRPC::m_Context, min(), and NCBI_THROW_FMT.
◆ ReadConfirmation() void SNetStorageObjectRPC::SIState::ReadConfirmation ( ) privateDefinition at line 1031 of file netstorage_rpc.cpp.
References CUTTPReader::eEndOfBuffer, END_OF_DATA_MARKER, CUTTPReader::GetControlSymbol(), CJsonOverUTTPReader::GetMessage(), CUTTPReader::GetNextEvent(), CSocket::GetPeerAddress(), SNetStorageObjectRPC::SContext::locator, SNetStorageObjectRPC::SContext::m_Connection, m_Context, m_EOF, SNetServerConnectionImpl::m_Socket, m_UTTPReader, NCBI_THROW_FMT, CJsonOverUTTPReader::ReadMessage(), ReadSocket(), and SNetStorageObjectRPC::SContext::TrapErrors().
◆ ReadSocket() void SNetStorageObjectRPC::SIState::ReadSocket ( ) inlineprivate ◆ StartReading() void SNetStorageObjectRPC::SIState::StartReading ( ) ◆ m_Context SContext& SNetStorageObjectRPC::SIState::m_Context private ◆ m_CurrentChunk ◆ m_CurrentChunkSize size_t SNetStorageObjectRPC::SIState::m_CurrentChunkSize privateDefinition at line 559 of file netstorage_rpc.cpp.
◆ m_EOF bool SNetStorageObjectRPC::SIState::m_EOF private ◆ m_ReadBuffer vector<char> SNetStorageObjectRPC::SIState::m_ReadBuffer private ◆ m_UTTPReader CUTTPReader SNetStorageObjectRPC::SIState::m_UTTPReader privateThe documentation for this struct was generated from the following file:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4