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

Method set

plugin/handler_socket/libhsclient/socket.cpp:30–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void
31socket_args::set(const config& conf)
32{
33 timeout = conf.get_int("timeout", 600);
34 listen_backlog = conf.get_int("listen_backlog", 256);
35 std::string node = conf.get_str("host", "");
36 std::string port = conf.get_str("port", "");
37 if (!node.empty() || !port.empty()) {
38 if (family == AF_UNIX || node == "/") {
39 set_unix_domain(port.c_str());
40 } else {
41 const char *nd = node.empty() ? 0 : node.c_str();
42 if (resolve(nd, port.c_str()) != 0) {
43 fatal_abort("getaddrinfo failed: " + node + ":" + port);
44 }
45 }
46 }
47 sndbuf = conf.get_int("sndbuf", 0);
48 rcvbuf = conf.get_int("rcvbuf", 0);
49}
50
51void
52socket_args::set_unix_domain(const char *path)

Callers 4

hstcpcli_mainFunction · 0.45
runMethod · 0.45
hstest_mainFunction · 0.45
hstcpsvrMethod · 0.45

Calls 5

fatal_abortFunction · 0.85
get_intMethod · 0.45
get_strMethod · 0.45
emptyMethod · 0.45
c_strMethod · 0.45

Tested by 1

hstest_mainFunction · 0.36