Lines Matching refs:Socket
15 // Represents a read/write socket.
16 class NET_EXPORT Socket {
18 virtual ~Socket() {}
20 // Reads data, up to |buf_len| bytes, from the socket. The number of bytes
22 // ERR_SOCKET_NOT_CONNECTED should be returned if the socket is not currently
27 // operation is not completed immediately, the socket acquires a reference to
28 // the provided buffer until the callback is invoked or the socket is
29 // closed. If the socket is Disconnected before the read completes, the
34 // Writes data, up to |buf_len| bytes, to the socket. Note: data may be
37 // the socket is not currently connected. The return value when the
41 // operation is not completed immediately, the socket acquires a reference to
42 // the provided buffer until the callback is invoked or the socket is
44 // of the actual buffer that is written to the socket. If the socket is
49 // Set the receive buffer size (in bytes) for the socket.
54 // Set the send buffer size (in bytes) for the socket.