| | 209 | /** |
|---|
| | 210 | * Changes the strategy used for determining hwo much memory to allocate |
|---|
| | 211 | * for the corking buffer. |
|---|
| | 212 | * |
|---|
| | 213 | * @param strategy A callable object used to determine how much memory to |
|---|
| | 214 | * allocate when the corking buffer needs to grow. |
|---|
| | 215 | * |
|---|
| | 216 | * @note This only has bearing on platforms (such as Windows) that do not |
|---|
| | 217 | * implement the no-push ("corking") option on TCP sockets. |
|---|
| | 218 | * |
|---|
| | 219 | * @since 2.1.9 |
|---|
| | 220 | */ |
|---|
| | 221 | void setCorkAllocStrategy(const NoPushAllocStrategy& s) |
|---|
| | 222 | { |
|---|
| | 223 | mSocketStreamImpl->setCorkAllocStrategy(s); |
|---|
| | 224 | } |
|---|
| | 225 | |
|---|
| 253 | | /** |
|---|
| 254 | | * Changes the strategy used for determining hwo much memory to allocate |
|---|
| 255 | | * for the corking buffer. |
|---|
| 256 | | * |
|---|
| 257 | | * @param strategy A callable object used to determine how much memory to |
|---|
| 258 | | * allocate when the corking buffer needs to grow. |
|---|
| 259 | | * |
|---|
| 260 | | * @note This only has bearing on platforms (such as Windows) that do not |
|---|
| 261 | | * implement the no-push ("corking") option on TCP sockets. |
|---|
| 262 | | * |
|---|
| 263 | | * @since 2.1.9 |
|---|
| 264 | | */ |
|---|
| 265 | | void setCorkAllocStrategy(const NoPushAllocStrategy& s) |
|---|
| 266 | | { |
|---|
| 267 | | mSocketStreamImpl->setCorkAllocStrategy(s); |
|---|
| 268 | | } |
|---|
| 269 | | |
|---|