MCPcopy Create free account
hub / github.com/MariaDB/server / socket_open

Function socket_open

plugin/handler_socket/libhsclient/socket.cpp:112–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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