A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/structSNetStorageObjectRPC_1_1SOState.html below:

NCBI C++ ToolKit: SNetStorageObjectRPC::SOState Struct Reference

Search Toolkit Book for SNetStorageObjectRPC::SOState

Definition at line 563 of file netstorage_rpc.cpp.

◆ SOState() ◆ Abort() void SNetStorageObjectRPC::SOState::Abort ( void  ) overridevirtual ◆ Close() void SNetStorageObjectRPC::SOState::Close ( void  ) overridevirtual ◆ Flush() ERW_Result SNetStorageObjectRPC::SOState::Flush ( ) overridevirtual ◆ GetLoc() string SNetStorageObjectRPC::SOState::GetLoc ( void  ) const inlineoverridevirtual ◆ Write() ERW_Result SNetStorageObjectRPC::SOState::Write ( const void *  buf, size_t  count, size_t *  bytes_written  ) overridevirtual

Write up to "count" bytes from the buffer pointed to by the "buf" argument onto the output device.

Always store the number of bytes actually written, or 0 if "count" has been passed as 0 ("buf" must be ignored in this case), via the "bytes_written" pointer, if provided non-NULL. Note that the method can return non-eRW_Success in case of an I/O error along with indicating (some) data delivered to the output device (and reflected in "*bytes_written").

Note
Apparently, may not return eRW_Success if hasn't been able to write "count" bytes as requested, and "bytes_written" was passed as NULL.
When returning "*bytes_written" as zero for a non-zero "count" requested, the return status should not indicate eRW_Success.
Warning
"*bytes_written" may never be returned greater than "count".
Attention
It is implementation-dependent whether the call blocks until the entire buffer or only some data has been written out. In general, it is advised that this call is made within a loop that checks for errors and proceeds with the writing until the required amount of data has been sent.

Implements IWriter.

Definition at line 1166 of file netstorage_rpc.cpp.

References SNetStorageObjectRPC::Abort(), eRW_Success, f, SNetStorageObjectRPC::SContext::m_Connection, SNetStorageObjectRPC::m_Context, SNetServerConnectionImpl::m_Socket, NULL, and s_SendUTTP().

◆ m_Context SContext& SNetStorageObjectRPC::SOState::m_Context private

The 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