Lines Matching defs:socket
28 #include <sys/socket.h>
62 TCPSocket::TCPSocket(NativeSocket socket, const TCPSocket &listen_socket)
65 m_socket = socket;
68 TCPSocket::TCPSocket(NativeSocket socket, bool should_close,
71 m_socket = socket;
80 // Return the port number that is being used by the socket.
252 for (auto socket : m_listen_sockets)
253 CLOSE_SOCKET(socket.first);
269 for (auto socket : m_listen_sockets) {
270 auto fd = socket.first;
272 auto io_sp = IOObjectSP(new TCPSocket(socket.first, false, inherit));