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

Method close

libhsclient/auto_file.hpp:27–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 }
26 int get() const { return fd; }
27 int close() {
28 if (fd < 0) {
29 return 0;
30 }
31 const int r = ::close(fd);
32 fd = -1;
33 return r;
34 }
35 void reset(int x = -1) {
36 if (fd >= 0) {
37 this->close();

Callers 1

resetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected