Searched refs:ScopedSocket (Results 1 – 3 of 3) sorted by relevance
24 class ScopedSocket {26 constexpr ScopedSocket() = default;27 constexpr ScopedSocket(int socket) : mSocket(socket) {} in ScopedSocket() function28 ScopedSocket(ScopedSocket&& other) : mSocket(other.release()) {} in ScopedSocket() function29 ~ScopedSocket() { close(); } in ~ScopedSocket()31 ScopedSocket& operator=(ScopedSocket&& other) {57 void swap(ScopedSocket* other) { in swap()65 inline void swap(ScopedSocket& one, ScopedSocket& two) { in swap()
36 AsyncSocket(Looper* looper, ScopedSocket socket);56 ScopedSocket mSocket;
98 ScopedSocket mSocket;