aboutsummaryrefslogtreecommitdiffstats
path: root/fnet/src/vespa/fnet/config.h
blob: 114d1d2c09da3e2e48ed8412f5653151b94ba252 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/vespalib/util/time.h>

/**
 * This class is used internally by the @ref FNET_Transport to keep
 * track of the current configuration.
 **/
class FNET_Config
{
public:
    vespalib::duration  _iocTimeOut;
    uint32_t  _events_before_wakeup;
    uint32_t  _maxInputBufferSize;
    uint32_t  _maxOutputBufferSize;
    bool      _tcpNoDelay;
    bool      _drop_empty_buffers;

    FNET_Config();
};