Home
last modified time | relevance | path

Searched refs:AsyncSocketAdapter (Results 1 – 7 of 7) sorted by relevance

/external/webrtc/rtc_base/
Dasync_socket.cc21 AsyncSocketAdapter::AsyncSocketAdapter(AsyncSocket* socket) : socket_(nullptr) { in AsyncSocketAdapter() function in rtc::AsyncSocketAdapter
25 AsyncSocketAdapter::~AsyncSocketAdapter() { in ~AsyncSocketAdapter()
29 void AsyncSocketAdapter::Attach(AsyncSocket* socket) { in Attach()
34 &AsyncSocketAdapter::OnConnectEvent); in Attach()
35 socket_->SignalReadEvent.connect(this, &AsyncSocketAdapter::OnReadEvent); in Attach()
36 socket_->SignalWriteEvent.connect(this, &AsyncSocketAdapter::OnWriteEvent); in Attach()
37 socket_->SignalCloseEvent.connect(this, &AsyncSocketAdapter::OnCloseEvent); in Attach()
41 SocketAddress AsyncSocketAdapter::GetLocalAddress() const { in GetLocalAddress()
45 SocketAddress AsyncSocketAdapter::GetRemoteAddress() const { in GetRemoteAddress()
49 int AsyncSocketAdapter::Bind(const SocketAddress& addr) { in Bind()
[all …]
Dfirewall_socket_server.cc26 class FirewallSocket : public AsyncSocketAdapter {
29 : AsyncSocketAdapter(socket), server_(server), type_(type) {} in FirewallSocket()
36 return AsyncSocketAdapter::Bind(addr); in Bind()
50 return AsyncSocketAdapter::Connect(addr); in Connect()
65 return AsyncSocketAdapter::SendTo(pv, cb, addr); in SendTo()
77 int res = AsyncSocketAdapter::RecvFrom(pv, cb, paddr, timestamp); in RecvFrom()
88 return AsyncSocketAdapter::RecvFrom(pv, cb, paddr, timestamp); in RecvFrom()
97 return AsyncSocketAdapter::Listen(backlog); in Listen()
101 while (AsyncSocket* sock = AsyncSocketAdapter::Accept(&addr)) { in Accept()
Dopenssl_adapter.cc399 AsyncSocketAdapter::OnConnectEvent(this); in ContinueSSL()
438 AsyncSocketAdapter::OnCloseEvent(this, err); in Error()
511 return AsyncSocketAdapter::Send(pv, cb); in Send()
587 return AsyncSocketAdapter::Recv(pv, cb, timestamp); in Recv()
650 return AsyncSocketAdapter::Close(); in Close()
678 AsyncSocketAdapter::OnConnectEvent(socket); in OnConnectEvent()
684 AsyncSocketAdapter::OnCloseEvent(socket, err); in OnConnectEvent()
690 AsyncSocketAdapter::OnReadEvent(socket); in OnReadEvent()
708 AsyncSocketAdapter::OnWriteEvent(socket); in OnReadEvent()
711 AsyncSocketAdapter::OnReadEvent(socket); in OnReadEvent()
[all …]
Dasync_socket.h46 class AsyncSocketAdapter : public AsyncSocket, public sigslot::has_slots<> {
52 explicit AsyncSocketAdapter(AsyncSocket* socket);
53 ~AsyncSocketAdapter() override;
Dssl_adapter.h53 class SSLAdapter : public AsyncSocketAdapter {
55 explicit SSLAdapter(AsyncSocket* socket) : AsyncSocketAdapter(socket) {} in SSLAdapter()
Dsocket_adapters.h32 class BufferedReadAdapter : public AsyncSocketAdapter {
42 return AsyncSocketAdapter::Send(pv, cb); in DirectSend()
Dsocket_adapters.cc30 : AsyncSocketAdapter(socket), in BufferedReadAdapter()
47 return AsyncSocketAdapter::Send(pv, cb); in Send()
71 int res = AsyncSocketAdapter::Recv(pv, cb, timestamp); in Recv()
94 AsyncSocketAdapter::OnReadEvent(socket); in OnReadEvent()