41 for (
size_t i=0; i<listing.size(); i++)
47 cbp->append_i32(listing.size());
49 for (
size_t i=0; i<listing.size(); i++)
int response(std::vector< DirEntry > &listing)
Comm * m_comm
Comm pointer.
std::shared_ptr< CommBuf > CommBufPtr
Smart pointer to CommBuf.
Compatibility Macros for C/C++.
void encode_dir_entry(uint8_t **bufp, const DirEntry &dir_entry)
Encodes (serializes) the given directory entry to a buffer.
int send_response(const CommAddress &addr, CommBufPtr &cbuf)
Sends a response message back over a connection.
Declarations for CommBuf.
size_t encoded_length_dir_entry(const DirEntry &dir_entry)
Returns the number of bytes required to encode (serialize) the given directory entry.
Message buffer for holding data to be transmitted over a network.
EventPtr m_event
Smart pointer to event object.
Error codes, Exception handling, error logging.