| OLD | NEW |
| 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 Loading... |
| 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 indicates wether Neagle's algorithm should be |
| 38 // enabled or not. Neagle's algorithm is disabled when this property |
| 39 // is set to true. |
| 40 PP_TRANSPORTPROPERTY_TCP_NO_DELAY = 5, |
| 41 |
| 42 // Delay for ACK packets in milliseconds. By default set to 100ms. |
| 43 PP_TRANSPORTPROPERTY_TCP_ACK_DELAY = 6 |
| 36 } PP_TransportProperty; | 44 } PP_TransportProperty; |
| 37 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_TransportProperty, 4); | 45 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_TransportProperty, 4); |
| 38 | 46 |
| 39 struct PPB_Transport_Dev { | 47 struct PPB_Transport_Dev { |
| 40 // Creates a new transport object with the specified name using the | 48 // Creates a new transport object with the specified name using the |
| 41 // specified protocol. | 49 // specified protocol. |
| 42 PP_Resource (*CreateTransport)(PP_Instance instance, | 50 PP_Resource (*CreateTransport)(PP_Instance instance, |
| 43 const char* name, | 51 const char* name, |
| 44 const char* proto); | 52 const char* proto); |
| 45 | 53 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 int32_t (*Send)(PP_Resource transport, | 98 int32_t (*Send)(PP_Resource transport, |
| 91 const void* data, | 99 const void* data, |
| 92 uint32_t len, | 100 uint32_t len, |
| 93 struct PP_CompletionCallback cb); | 101 struct PP_CompletionCallback cb); |
| 94 | 102 |
| 95 // Disconnects from the remote peer. | 103 // Disconnects from the remote peer. |
| 96 int32_t (*Close)(PP_Resource transport); | 104 int32_t (*Close)(PP_Resource transport); |
| 97 }; | 105 }; |
| 98 | 106 |
| 99 #endif /* PPAPI_C_PPB_TRANSPORT_DEV_H_ */ | 107 #endif /* PPAPI_C_PPB_TRANSPORT_DEV_H_ */ |
| OLD | NEW |