Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: mojo/services/public/interfaces/network/tcp_socket.mojom

Issue 613683006: Add TCP socket mojo interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 import "mojo/services/public/interfaces/network/net_address.mojom"
6 import "mojo/services/public/interfaces/network/network_error.mojom"
7
8 module mojo {
9
10 interface TCPSocket {
yzshen1 2014/09/30 00:21:52 Do we need a Bind() function here?
11 Connect(NetAddress addr,
12 handle<data_pipe_consumer> send_stream,
13 handle<data_pipe_producer> receive_stream) =>
14 (NetworkError result,
15 NetAddress local_address,
yzshen1 2014/09/30 00:21:52 you might want to use NetAddress? here, so that it
16 NetAddress remote_address);
17
18 // Closes the connection. If Close() is not called, the connection will be
19 // implicitly closes when the TCPSocket has been deleted.
viettrungluu 2014/09/29 23:50:14 "deleted"?
20 Close();
viettrungluu 2014/09/29 23:50:14 Is this really necessary at all? In general, this
21
22 // Controls whether small writes are coalesced to make TCP segments, and
23 // instead delivers data immediately. The default value is true (coalescing
24 // enabled).
25 SetCoaleseWrites(bool coalesce);
26 };
27
28 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698