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