Public Member Functions | Data Fields

Sphinx::Query_t Struct Reference

Public Member Functions

 Query_t (unsigned int size=1024)
Query_toperator<< (unsigned short)
Query_toperator<< (uint32_t)
Query_toperator<< (uint64_t)
Query_toperator<< (float)
Query_toperator<< (const std::string &)
Query_toperator<< (const Query_t &)
Query_toperator>> (uint32_t &)
Query_toperator>> (uint64_t &)
Query_toperator>> (float &)
Query_toperator>> (unsigned short &)
Query_toperator>> (std::string &)
Query_toperator= (const Query_t &)
 Query_t (const Query_t &source)
bool operator! () const
void doubleSizeBuffer ()
void clear ()
unsigned int getLength () const
int readOnReadable (int socket_d, int &bytesToRead, const std::string &stage)
 reads data on readable socket
int writeOnWritable (int socket_d, unsigned int &bytesSent, const std::string &stage)
 writes data on writable socket

Data Fields

unsigned char * data
unsigned int dataEndPtr
unsigned int dataStartPtr
unsigned int dataSize
bool error
bool convertEndian

Member Function Documentation

int Sphinx::Query_t::readOnReadable ( int  socket_d,
int &  bytesToRead,
const std::string &  stage 
)

reads data on readable socket

Parameters:
socket_d socket to perform read on
bytesToRead bytes pending
Returns:
0 if read is done and there is nothing to read 1 if something has been read, but some is remaining -1 if nothing has been read, try again
int Sphinx::Query_t::writeOnWritable ( int  socket_d,
unsigned int &  bytesSent,
const std::string &  stage 
)

writes data on writable socket

Parameters:
socket_d socket to perform write on
bytesSent bytes already sent
Returns:
0 if write is done and there is nothing to write 1 if something has been written, but some is remaining -1 if nothing has been written, try again

The documentation for this struct was generated from the following file: