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

Side by Side Diff: ppapi/c/dev/ppb_transport_dev.h

Issue 7820008: Add TCP configuration parameters for Transport API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « jingle/glue/pseudotcp_adapter.h ('k') | ppapi/tests/test_transport.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 #ifndef PPAPI_C_PPB_TRANSPORT_DEV_H_ 5 #ifndef PPAPI_C_PPB_TRANSPORT_DEV_H_
6 #define PPAPI_C_PPB_TRANSPORT_DEV_H_ 6 #define PPAPI_C_PPB_TRANSPORT_DEV_H_
7 7
8 #include "ppapi/c/pp_bool.h" 8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_completion_callback.h" 9 #include "ppapi/c/pp_completion_callback.h"
10 #include "ppapi/c/pp_module.h" 10 #include "ppapi/c/pp_module.h"
(...skipping 14 matching lines...) Expand all
25 25
26 // Single string that specifies token for use with relay server. 26 // Single string that specifies token for use with relay server.
27 PP_TRANSPORTPROPERTY_RELAY_TOKEN = 2, 27 PP_TRANSPORTPROPERTY_RELAY_TOKEN = 2,
28 28
29 // TCP receive window in bytes. Takes effect only for PseudoTCP 29 // TCP receive window in bytes. Takes effect only for PseudoTCP
30 // connections. 30 // connections.
31 PP_TRANSPORTPROPERTY_TCP_RECEIVE_WINDOW = 3, 31 PP_TRANSPORTPROPERTY_TCP_RECEIVE_WINDOW = 3,
32 32
33 // TCP send window in bytes. Takes effect only for PseudoTCP 33 // TCP send window in bytes. Takes effect only for PseudoTCP
34 // connections. 34 // connections.
35 PP_TRANSPORTPROPERTY_TCP_SEND_WINDOW = 4 35 PP_TRANSPORTPROPERTY_TCP_SEND_WINDOW = 4,
36
37 // Boolean value that disables Neagle's algorithm when set to
38 // true. When Neagle's algorithm is disabled, all outgoing packets
39 // are sent as soon as possible. When set to false (by default) data
40 // may be buffered until there is a sufficient amount to send.
41 PP_TRANSPORTPROPERTY_TCP_NO_DELAY = 5,
42
43 // Delay for ACK packets in milliseconds. By default set to 100ms.
44 PP_TRANSPORTPROPERTY_TCP_ACK_DELAY = 6
36 } PP_TransportProperty; 45 } PP_TransportProperty;
37 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_TransportProperty, 4); 46 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_TransportProperty, 4);
38 47
39 struct PPB_Transport_Dev { 48 struct PPB_Transport_Dev {
40 // Creates a new transport object with the specified name using the 49 // Creates a new transport object with the specified name using the
41 // specified protocol. 50 // specified protocol.
42 PP_Resource (*CreateTransport)(PP_Instance instance, 51 PP_Resource (*CreateTransport)(PP_Instance instance,
43 const char* name, 52 const char* name,
44 const char* proto); 53 const char* proto);
45 54
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 int32_t (*Send)(PP_Resource transport, 99 int32_t (*Send)(PP_Resource transport,
91 const void* data, 100 const void* data,
92 uint32_t len, 101 uint32_t len,
93 struct PP_CompletionCallback cb); 102 struct PP_CompletionCallback cb);
94 103
95 // Disconnects from the remote peer. 104 // Disconnects from the remote peer.
96 int32_t (*Close)(PP_Resource transport); 105 int32_t (*Close)(PP_Resource transport);
97 }; 106 };
98 107
99 #endif /* PPAPI_C_PPB_TRANSPORT_DEV_H_ */ 108 #endif /* PPAPI_C_PPB_TRANSPORT_DEV_H_ */
OLDNEW
« no previous file with comments | « jingle/glue/pseudotcp_adapter.h ('k') | ppapi/tests/test_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698