Home
last modified time | relevance | path

Searched refs:new_socket (Results 1 – 13 of 13) sorted by relevance

/external/chromium_org/net/dns/
Dmock_mdns_socket_factory.cc72 scoped_ptr<testing::NiceMock<MockMDnsDatagramServerSocket> > new_socket( in CreateSocket() local
75 ON_CALL(*new_socket, SendToInternal(_, _, _)) in CreateSocket()
80 ON_CALL(*new_socket, RecvFrom(_, _, _, _)) in CreateSocket()
85 sockets->push_back(new_socket.release()); in CreateSocket()
/external/chromium_org/third_party/webrtc/base/
Dasynctcpsocket.cc182 rtc::AsyncSocket* new_socket = socket->Accept(&address); in OnReadEvent() local
183 if (!new_socket) { in OnReadEvent()
190 HandleIncomingConnection(new_socket); in OnReadEvent()
193 new_socket->SignalReadEvent(new_socket); in OnReadEvent()
Dasynchttprequest_unittest.cc42 AsyncSocket* new_socket = socket_->Accept(NULL); in OnAccept() local
43 if (new_socket) { in OnAccept()
44 HandleConnection(new SocketStream(new_socket)); in OnAccept()
Dssladapter_unittest.cc180 rtc::AsyncSocket* new_socket = socket->Accept(&address); in OnServerSocketReadEvent() local
181 rtc::SocketStream* stream = new rtc::SocketStream(new_socket); in OnServerSocketReadEvent()
/external/chromium_org/third_party/libjingle/source/talk/p2p/base/
Dasyncstuntcpsocket_unittest.cc118 rtc::AsyncPacketSocket* new_socket) { in OnNewConnection() argument
119 listen_socket_.reset(new_socket); in OnNewConnection()
120 new_socket->SignalReadPacket.connect( in OnNewConnection()
Dtcpport.cc191 rtc::AsyncPacketSocket* new_socket) { in OnNewConnection() argument
195 incoming.addr = new_socket->GetRemoteAddress(); in OnNewConnection()
196 incoming.socket = new_socket; in OnNewConnection()
Dtcpport.h91 rtc::AsyncPacketSocket* new_socket);
/external/chromium_org/tools/android/forwarder2/
Dsocket.cc206 bool Socket::Accept(Socket* new_socket) { in Accept() argument
207 DCHECK(new_socket != NULL); in Accept()
219 new_socket->socket_ = new_socket_fd; in Accept()
220 if (!new_socket->SetNonBlocking()) in Accept()
Dsocket.h42 bool Accept(Socket* new_socket);
/external/chromium_org/native_client_sdk/src/tests/nacl_io_socket_test/
Dsocket_test.cc636 int new_socket = ki_accept(server_sock, (sockaddr*)&client_addr[0], in TEST_F() local
638 ASSERT_GT(new_socket, -1) in TEST_F()
669 ASSERT_EQ(greeting_len, ki_recv(new_socket, inbuf, sizeof(inbuf), 0)); in TEST_F()
672 ASSERT_EQ(reply_len, ki_send(new_socket, server_reply, reply_len, 0)); in TEST_F()
679 ASSERT_EQ(0, ki_close(new_socket)); in TEST_F()
719 int new_socket = ki_accept(server_sock, (sockaddr*)&addr, &addrlen); in TEST_F() local
720 ASSERT_NE(-1, new_socket) in TEST_F()
722 ASSERT_EQ(0, ki_close(new_socket)); in TEST_F()
/external/chromium_org/net/socket/
Dsocket_libevent.cc365 int new_socket = HANDLE_EINTR(accept(socket_fd_, in DoAccept() local
368 if (new_socket < 0) in DoAccept()
372 int rv = accepted_socket->AdoptConnectedSocket(new_socket, new_peer_address); in DoAccept()
Dtcp_socket_win.cc726 int new_socket = accept(socket_, storage.addr, &storage.addr_len); in AcceptInternal() local
727 if (new_socket < 0) { in AcceptInternal()
737 if (closesocket(new_socket) < 0) in AcceptInternal()
745 int adopt_result = tcp_socket->AdoptConnectedSocket(new_socket, ip_end_point); in AcceptInternal()
/external/chromium_org/extensions/browser/api/cast_channel/
Dcast_channel_api.cc371 CastSocket* new_socket = GetSocket(new_channel_id_); in AsyncWorkStart() local
372 api_->GetLogger()->LogNewSocketEvent(*new_socket); in AsyncWorkStart()
373 new_socket->Connect(base::Bind(&CastChannelOpenFunction::OnOpen, this)); in AsyncWorkStart()