MCPcopy Create free account
hub / github.com/acl-dev/acl / get_status

Method get_status

lib_acl_cpp/src/redis/redis_client.cpp:209–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209redis_result* redis_client::get_status(socket_stream& conn, dbuf_pool* dbuf)
210{
211 string& buf = conn.get_buf();
212 buf.clear();
213 if (!conn_.gets(buf)) {
214 logger_error("gets error, server: %s", conn.get_peer(true));
215 return NULL;
216 }
217
218 redis_result* rr = new(dbuf) redis_result(dbuf);
219 rr->set_type(REDIS_RESULT_STATUS);
220 rr->set_size(1);
221
222 put_data(dbuf, rr, buf.c_str(), buf.length());
223 return rr;
224}
225
226redis_result* redis_client::get_integer(socket_stream& conn, dbuf_pool* dbuf)
227{

Callers

nothing calls this directly

Calls 7

getsMethod · 0.80
get_bufMethod · 0.45
clearMethod · 0.45
get_peerMethod · 0.45
set_typeMethod · 0.45
c_strMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected