OLD | NEW |
---|---|
(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 } | |
OLD | NEW |