Lines Matching defs:SyncSocket
30 class BASE_EXPORT SyncSocket {
41 SyncSocket();
43 // Creates a SyncSocket from a Handle. Used in transport.
44 explicit SyncSocket(Handle handle) : handle_(handle) {}
45 virtual ~SyncSocket();
50 static bool CreatePair(SyncSocket* socket_a, SyncSocket* socket_b);
61 // Closes the SyncSocket. Returns true on success, false on failure.
64 // Sends the message to the remote peer of the SyncSocket.
72 // Receives a message from an SyncSocket.
99 DISALLOW_COPY_AND_ASSIGN(SyncSocket);
102 // Derives from SyncSocket and adds support for shutting down the socket from
105 class BASE_EXPORT CancelableSyncSocket : public SyncSocket {
112 // SyncSocket::CreatePair for more details.
126 // SyncSocket methods in order to support shutting down the 'socket'.
137 // SyncSocket::Send will, but instead return 0, as no bytes could be sent.
152 const SyncSocket::Handle SyncSocket::kInvalidHandle = INVALID_HANDLE_VALUE;