Lines Matching refs:socket
19 #include <sys/socket.h>
56 FileDescriptorCloser socket (::socket(domain, SOCK_DGRAM, 0));
57 if (!socket.IsSet())
64 if (ioctl(socket.Get(), SIOCGIFCONF, &config, sizeof(struct ifconf)) < 0)
90 if (ioctl(socket.Get(), SIOCGIFFLAGS, &request, sizeof(struct ifreq))
93 if (ioctl(socket.Get(), SIOCGIFNETMASK, &request, sizeof(struct ifreq))
97 if (ioctl(socket.Get(), SIOCGIFDSTADDR, &request, sizeof(struct ifreq))
120 FileDescriptorCloser socket(::socket(AF_INET, SOCK_DGRAM, 0));
121 if (!socket.IsSet())
127 if (ioctl(socket.Get(), SIOCGIFCOUNT, &config, sizeof(struct ifconf)) < 0)
130 socket.Unset();