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

Function socket_open

libhsclient/socket.cpp:113–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113int
114socket_open(auto_file& fd, const socket_args& args, std::string& err_r)
115{
116 fd.reset(socket(args.family, args.socktype, args.protocol));
117 if (fd.get() < 0) {
118 return errno_string("socket", errno, err_r);
119 }
120 return socket_set_options(fd, args, err_r);
121}
122
123int
124socket_connect(auto_file& fd, const socket_args& args, std::string& err_r)

Callers 1

socket_connectFunction · 0.85

Calls 4

errno_stringFunction · 0.85
socket_set_optionsFunction · 0.85
resetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected