Lines Matching refs:socket_
20 : socket_(INVALID_SOCKET),
40 DCHECK_EQ(socket_, INVALID_SOCKET);
49 socket_ = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
50 if (socket_ < 0) {
55 if (SetNonBlocking(socket_)) {
67 int result = bind(socket_, addr, addr_len);
75 result = listen(socket_, backlog);
93 if (getsockname(socket_, addr, &addr_len))
114 WSAEventSelect(socket_, socket_event_, FD_ACCEPT);
129 int result = accept(socket_, addr, &addr_len);
157 if (socket_ != INVALID_SOCKET) {
158 if (closesocket(socket_) < 0)
160 socket_ = INVALID_SOCKET;
171 if (WSAEnumNetworkEvents(socket_, socket_event_, &ev) == SOCKET_ERROR) {