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

Class socket_args

libhsclient/socket.hpp:20–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18namespace dena {
19
20struct socket_args {
21 sockaddr_storage addr;
22 socklen_t addrlen;
23 int family;
24 int socktype;
25 int protocol;
26 int timeout;
27 int listen_backlog;
28 bool reuseaddr;
29 bool nonblocking;
30 bool use_epoll;
31 int sndbuf;
32 int rcvbuf;
33 socket_args() : addr(), addrlen(0), family(AF_INET), socktype(SOCK_STREAM),
34 protocol(0), timeout(600), listen_backlog(256),
35 reuseaddr(true), nonblocking(false), use_epoll(false),
36 sndbuf(0), rcvbuf(0) { }
37 void set(const config& conf);
38 void set_unix_domain(const char *path);
39 int resolve(const char *node, const char *service);
40};
41
42void ignore_sigpipe();
43int socket_bind(auto_file& fd, const socket_args& args, std::string& err_r);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected