38 : packetMaxSize_(1420)
40 , socketBufferSize_(8 * 1024 * 1024)
53 return packetMaxSize_;
59 packetMaxSize_ = value;
86 return socketBufferSize_;
92 socketBufferSize_ = value;
106 return dataWaitTime_;
112 dataWaitTime_ = value;
132 toStr(str, settings);
153 void info(std::string&)
override;
173 Workhorse* workhorse_;
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
#define ONIXS_CMEMDH_LTWT
#define ONIXS_CMEMDH_NAMESPACE_END
#define ONIXS_CMEMDH_EXPORTED
NetFeedEngineSettings()
Initializes the settings with the default logger.
const std::string & engineId() const noexcept
Returns the identifier generated for this engine.
std::string about()
Returns information about the actual feed-engine implementation.
NetFeedEngine(const NetFeedEngineSettings &settings=NetFeedEngineSettings{})
Constructs an engine and generates its identifier.
Base attributes of market data feed.
SocketFeedEngineSettings()
void socketBufferSize(Messaging::UInt32 value)
Sets socketBufferSize.
void packetMaxSize(PacketSize value)
Max size for network packet transmitted by MDP.
void dataWaitTime(Messaging::UInt32 value)
Sets dataWaitTime.
~SocketFeedEngineSettings()
Cleans everything up.
void watch(WatchService &watch)
PacketSize packetMaxSize() const
Messaging::UInt32 socketBufferSize() const
Messaging::UInt32 dataWaitTime() const
WatchService & watch() const
void info(std::string &) override
~SocketFeedEngine() override
Destructs the given instance.
NetFeedLink & allocate(const NetFeed &) override
Allocates a link for the given feed.
NetFeedEngineProcessResult process() override
SocketFeedEngine(const SocketFeedEngineSettings &=SocketFeedEngineSettings())
Initializes the engine according to the given configuration.
WatchService & watch() override
std::uint32_t UInt32
uInt32.
Messaging::UInt16 PacketSize
Represents a packet size in bytes.
void toStr(std::string &str, BookState::Enum bookState)
Appends a string representation of a book state.