Lines Matching refs:socket
20 // TODO: using AF_INET for the socket isn't really a smart idea, as one
40 FileDescriptorCloser socket(::socket(AF_INET, SOCK_DGRAM, 0));
41 if (!socket.IsSet())
46 if (ioctl(socket.Get(), SIOCGIFCOUNT, &config, sizeof(struct ifconf)) != 0)
64 FileDescriptorCloser socket (::socket(AF_INET, SOCK_DGRAM, 0));
65 if (!socket.IsSet())
70 if (ioctl(socket.Get(), SIOCGIFCOUNT, &config, sizeof(struct ifconf)) < 0)
85 if (ioctl(socket.Get(), SIOCGIFCONF, &config, sizeof(struct ifconf)) < 0)
109 FileDescriptorCloser socket (::socket(AF_INET, SOCK_DGRAM, 0));
110 if (!socket.IsSet())
117 if (ioctl(socket.Get(), SIOCAIFADDR, &request, sizeof(request)) != 0)
134 FileDescriptorCloser socket(::socket(AF_INET, SOCK_DGRAM, 0));
135 if (!socket.IsSet())
143 if (ioctl(socket.Get(), SIOCDIFADDR, &request, sizeof(request)) != 0)