CatapultServer  v0.5.0.1 (Elephant)
ConnectionSettings.h
Go to the documentation of this file.
1 
21 #pragma once
27 
28 namespace catapult { namespace net {
29 
32  public:
35  : NetworkIdentifier(model::NetworkIdentifier::Zero)
36  , Timeout(utils::TimeSpan::FromSeconds(10))
37  , SocketWorkingBufferSize(utils::FileSize::FromKilobytes(4))
38  , SocketWorkingBufferSensitivity(0) // memory reclamation disabled
39  , MaxPacketDataSize(utils::FileSize::FromMegabytes(100))
42  {}
43 
44  public:
47 
50 
53 
56 
59 
62 
65 
66  public:
73  return options;
74  }
75  };
76 }}
ConnectionSecurityMode.h
catapult::net::ConnectionSettings::Timeout
utils::TimeSpan Timeout
Connection timeout.
Definition: ConnectionSettings.h:49
catapult::utils::FileSize::bytes
constexpr uint64_t bytes() const
Returns the number of bytes.
Definition: FileSize.h:67
catapult::net::ConnectionSettings::toSocketOptions
ionet::PacketSocketOptions toSocketOptions() const
Gets the packet socket options represented by the configured settings.
Definition: ConnectionSettings.h:68
catapult::net::ConnectionSettings
Settings used to configure connections.
Definition: ConnectionSettings.h:31
catapult::net::ConnectionSettings::IncomingSecurityModes
ionet::ConnectionSecurityMode IncomingSecurityModes
Accepted security modes of incoming connections initiated by other nodes.
Definition: ConnectionSettings.h:64
catapult::ionet::PacketSocketOptions::WorkingBufferSensitivity
size_t WorkingBufferSensitivity
Working buffer sensitivity.
Definition: PacketSocketOptions.h:32
PacketSocketOptions.h
FileSize.h
catapult::utils::TimeSpan
Represents a time duration.
Definition: TimeSpan.h:30
catapult::ionet::ConnectionSecurityMode
ConnectionSecurityMode
Possible connection security modes.
Definition: ConnectionSecurityMode.h:36
NetworkInfo.h
catapult::net::ConnectionSettings::NetworkIdentifier
model::NetworkIdentifier NetworkIdentifier
Network identifier.
Definition: ConnectionSettings.h:46
catapult::net::ConnectionSettings::ConnectionSettings
ConnectionSettings()
Creates default settings.
Definition: ConnectionSettings.h:34
catapult::utils::FileSize
Represents a file size.
Definition: FileSize.h:29
catapult::ionet::PacketSocketOptions::MaxPacketDataSize
size_t MaxPacketDataSize
Maximum packet data size.
Definition: PacketSocketOptions.h:35
catapult::model::NetworkIdentifier
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
TimeSpan.h
catapult::net::ConnectionSettings::SocketWorkingBufferSensitivity
size_t SocketWorkingBufferSensitivity
Socket working buffer sensitivity.
Definition: ConnectionSettings.h:55
catapult::net::ConnectionSettings::SocketWorkingBufferSize
utils::FileSize SocketWorkingBufferSize
Socket working buffer size.
Definition: ConnectionSettings.h:52
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::ionet::PacketSocketOptions
Packet socket options.
Definition: PacketSocketOptions.h:27
catapult::net::ConnectionSettings::OutgoingSecurityMode
ionet::ConnectionSecurityMode OutgoingSecurityMode
Security mode of outgoing connections initiated by this node.
Definition: ConnectionSettings.h:61
catapult::ionet::PacketSocketOptions::WorkingBufferSize
size_t WorkingBufferSize
Initial working buffer size.
Definition: PacketSocketOptions.h:29
catapult::net::ConnectionSettings::MaxPacketDataSize
utils::FileSize MaxPacketDataSize
Maximum packet data size.
Definition: ConnectionSettings.h:58