(
size_t) blob_size;
66 #define CheckBlobSize(blob_size) ((size_t) (blob_size)) 74 const string& blob_id,
76 size_t* blob_size_ptr,
82 size_t* bytes_read_ptr = 0);
88 const string&
GetBlobID()
const{
returnm_BlobID;}
92 bool Eof()
const{
returnm_BlobBytesToRead == 0;}
95 voidSocketRead(
void*
buf,
size_t count,
size_t* bytes_read);
128 size_t* bytes_written = 0);
133 virtual voidClose();
134 virtual void Abort();
136 voidWriteBufferAndClose(
const char* buf_ptr,
size_tbuf_size);
141 const string&
GetKey()
const{
returnm_Key;}
143 void SetBlobID(
const string& blob_id) {m_BlobID = blob_id;}
148 voidAbortConnection();
150 voidTransmit(
const void*
buf,
size_t count,
size_t* bytes_written);
152 voidEstablishConnection();
153 voidUploadCacheFile();
Class for support low level input/output for files.
Client API for NetCache server.
NetCache internal exception.
A very basic data-read interface.
NCBI_XNCBI_EXPORT void Abort(void)
Smart abort function.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
void Write(CObjectOStream &out, TConstObjectPtr object, const CTypeRef &type)
ENetCacheResponseType GetResponseType() const
CNetCacheAPI m_NetCacheAPI
ENetCacheResponseType m_ResponseType
const string & GetBlobID() const
CNetServerConnection m_Connection
unique_ptr< CSocketReaderWriter > m_SocketReaderWriter
CNetServerConnection m_Connection
size_t CheckBlobSize(Uint8 blob_size)
const string & GetBlobID() const
Uint8 GetBlobSize() const
unique_ptr< CTransmissionWriter > m_TransmissionWriter
void SetBlobID(const string &blob_id)
const CNetCacheAPIParameters * m_Parameters
const string & GetKey() const
uint64_t Uint8
8-byte (64-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
ERW_Result
Result codes for I/O operations.
virtual ERW_Result PendingCount(size_t *count)=0
Via parameter "count" (which is guaranteed to be supplied non-NULL) return the number of bytes that a...
virtual ERW_Result Read(void *buf, size_t count, size_t *bytes_read=0)=0
Read as many as "count" bytes into a buffer pointed to by the "buf" argument.
#define NCBI_XCONNECT_EXPORT
const struct ncbi::grid::netcache::search::fields::KEY key
NetCache client parameters.
Reader writer with transmission checking.
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