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

Method peek

lib_fiber/cpp/src/keeper/keeper_conn.cpp:59–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59socket_stream* keeper_conn::peek(double& cost)
60{
61 cost = conn_cost_;
62 if (is_ready()) {
63 assert(conn_);
64 socket_stream* conn = dup_stream(*conn_);
65 delete conn_;
66 conn_ = NULL;
67 status_ = KEEPER_T_IDLE;
68 return conn;
69 }
70
71 return NULL;
72}
73
74void keeper_conn::stop()
75{

Callers 1

add_taskMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected