MCPcopy Create free account
hub / github.com/DeNA/HandlerSocket-Plugin-for-MySQL / dbconnstate

Class dbconnstate

handlersocket/hstcpsvr_worker.cpp:39–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37namespace dena {
38
39struct dbconnstate {
40 string_buffer readbuf;
41 string_buffer writebuf;
42 std::vector<prep_stmt> prep_stmts;
43 size_t resp_begin_pos;
44 size_t find_nl_pos;
45 void reset() {
46 readbuf.clear();
47 writebuf.clear();
48 prep_stmts.clear();
49 resp_begin_pos = 0;
50 find_nl_pos = 0;
51 }
52 dbconnstate() : resp_begin_pos(0), find_nl_pos(0) { }
53};
54
55struct hstcpsvr_conn;
56typedef auto_ptrcontainer< std::list<hstcpsvr_conn *> > hstcpsvr_conns_type;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected