13 #ifndef __STOUT_OS_SOCKET_HPP__
14 #define __STOUT_OS_SOCKET_HPP__
34 if ((s = ::
socket(family, type, protocol)) < 0) {
42 if (setsockopt(s, SOL_SOCKET, SO_NOSIGPIPE, &enable,
sizeof(
int)) == -1) {
52 #endif // __STOUT_OS_SOCKET_HPP__
Try< int_fd > socket(int family, int type, int protocol)
Definition: socket.hpp:31
Try< Nothing > enable(const std::string &hierarchy, const std::string &cgroup)
Definition: errorbase.hpp:49
Try< uint32_t > type(const std::string &path)
int int_fd
Definition: int_fd.hpp:35