MCPcopy Create free account
hub / github.com/Tencent/phxsql / Clear

Method Clear

phxsqlproxy/io_channel.cpp:54–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void IOChannel::Clear() {
55 req_uniq_id_ = 0;
56 client_fd_ = -1;
57 sqlsvr_fd_ = -1;
58 connect_dest_ = "";
59 connect_port_ = 0;
60 is_authed_ = false;
61 db_name_ = "";
62 last_read_fd_ = -1;
63 last_received_request_timestamp_ = 0;
64 client_ip_ = "";
65}
66
67int IOChannel::TransMsg(int client_fd, int sqlsvr_fd) {
68 client_fd_ = client_fd;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected