| 111 | } |
| 112 | |
| 113 | int |
| 114 | socket_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 | |
| 123 | int |
| 124 | socket_connect(auto_file& fd, const socket_args& args, std::string& err_r) |
no test coverage detected