Skip to main content

API

TransportTcpServerConfigurationโ€‹

Parametersโ€‹

NameTypeDescriptionDefaults
readTimeoutDurationTimeout for socket read operationsโˆž
writeTimeoutDurationTimeout for socket write operationsโˆž
socketMaxConnectionsint?N connection requests will be queued before further requests are refused4096
socketReceiveBufferSizeint?SO_RCVBUF4 * 1024 * 1024
socketSendBufferSizeint?SO_SNDBUF4 * 1024 * 1024
socketNonblockbool?O_NONBLOCKtrue
socketCloexecbool?O_CLOEXECtrue
socketReusePortbool?SO_REUSEPORTtrue
socketReuseAddressbool?SO_REUSEADDR
socketKeepalivebool?SO_KEEPALIVE
socketReceiveLowAtint?SO_RCVLOWAT
socketSendLowAtint?SO_SNDLOWAT
tcpQuickackbool?TCP_QUICKACKtrue
tcpDeferAcceptbool?TCP_DEFER_ACCEPTtrue
tcpNoDelaybool?TCP_NODELAYtrue
tcpFastopenbool?TCP_FASTOPENtrue
ipTtlint?IP_TTL
ipFreebindbool?IP_FREEBIND
tcpKeepAliveIdleint?TCP_KEEPIDLE
tcpKeepAliveMaxCountint?TCP_KEEPCNT
tcpKeepAliveIndividualCountint?TCP_KEEPINTVL
tcpMaxSegmentSizeint?TCP_MAXSEG
tcpSynCountint?TCP_SYNCNT

TransportTcpClientConfigurationโ€‹

Parametersโ€‹

NameTypeDescriptionDefaults
poolintConnections in the pool1
connectTimeoutDurationTimeout for connect operationsDuration(seconds: 60)
readTimeoutDurationTimeout for socket read operationsDuration(seconds: 60)
writeTimeoutDurationTimeout for socket write operationsDuration(seconds: 60)
socketReceiveBufferSizeint?SO_RCVBUF4 * 1024 * 1024
socketSendBufferSizeint?SO_SNDBUF4 * 1024 * 1024
socketNonblockbool?O_NONBLOCKtrue
socketCloexecbool?O_CLOEXECtrue
socketReuseAddressbool?SO_REUSEPORT
socketReusePortbool?SO_REUSEADDR
socketKeepalivebool?SO_KEEPALIVE
socketReceiveLowAtint?SO_RCVLOWAT
socketSendLowAtint?SO_SNDLOWAT
tcpQuickackbool?TCP_QUICKACKtrue
tcpDeferAcceptbool?TCP_DEFER_ACCEPTtrue
tcpFastopenbool?TCP_NODELAYtrue
tcpNoDelaybool?TCP_FASTOPENtrue
ipTtlint?IP_TTL
ipFreebindbool?IP_FREEBIND
tcpKeepAliveIdleint?TCP_KEEPIDLE
tcpKeepAliveMaxCountint?TCP_KEEPCNT
tcpKeepAliveIndividualCountint?TCP_KEEPINTVL
tcpMaxSegmentSizeint?TCP_MAXSEG
tcpSynCountint?TCP_SYNCNT

TransportUdpServerConfigurationโ€‹

Parametersโ€‹

NameTypeDescriptionDefaults
readTimeoutDurationTimeout for socket read operationsโˆž
writeTimeoutDurationTimeout for socket write operationsโˆž
socketReceiveBufferSizeint?SO_RCVBUF4 * 1024 * 1024
socketSendBufferSizeint?SO_SNDBUF4 * 1024 * 1024
socketNonblockbool?O_NONBLOCKtrue
socketCloexecbool?O_CLOEXECtrue
socketReusePortbool?SO_REUSEPORTtrue
socketReuseAddressbool?SO_REUSEADDR
socketBroadcastbool?SO_KEEPALIVE
socketReceiveLowAtint?SO_RCVLOWAT
socketSendLowAtint?SO_SNDLOWAT
ipTtlint?IP_TTL
ipFreebindbool?IP_FREEBIND
ipMulticastAllbool?IP_MULTICAST_ALL
ipMulticastInterfaceTransportUdpMulticastConfiguration?IP UDP Multicast Interface parameters
ipMulticastLoopint?IP_MULTICAST_LOOP
ipMulticastTtlint?IP_MULTICAST_TTL
multicastManagerTransportUdpMulticastManager?Manager for controlling multicast interfaces

TransportUdpClientConfigurationโ€‹

Parametersโ€‹

NameTypeDescriptionDefaults
readTimeoutDurationTimeout for socket read operationsDuration(seconds: 60)
writeTimeoutDurationTimeout for socket write operationsDuration(seconds: 60)
socketReceiveBufferSizeint?SO_RCVBUF4 * 1024 * 1024
socketSendBufferSizeint?SO_SNDBUF4 * 1024 * 1024
socketNonblockbool?O_NONBLOCKtrue
socketCloexecbool?O_CLOEXECtrue
socketReuseAddressbool?SO_REUSEPORT
socketReusePortbool?SO_REUSEADDR
socketBroadcastbool?SO_KEEPALIVE
socketReceiveLowAtint?SO_RCVLOWAT
socketSendLowAtint?SO_SNDLOWAT
ipTtlint?IP_TTL
ipFreebindbool?IP_FREEBIND
ipMulticastAllbool?IP_MULTICAST_ALL
ipMulticastInterfaceTransportUdpMulticastConfiguration?IP UDP Multicast Interface parameters
ipMulticastLoopint?IP_MULTICAST_LOOP
ipMulticastTtlint?IP_MULTICAST_TTL
multicastManagerTransportUdpMulticastManager?Manager for controlling multicast interfaces

TransportUdpMulticastConfigurationโ€‹

Parametersโ€‹

NameTypeDescription
groupAddressStringip_mreqn
localAddressStringip_mreqn
localInterfaceString?ip_mreqn
interfaceIndexint?ip_mreqn
calculateInterfaceIndexboolTake the local interface index from the local interface name

TransportUdpMulticastManagerโ€‹

Declaration
class TransportUdpMulticastManager {
void addMembership(TransportUdpMulticastConfiguration configuration)
void dropMembership(TransportUdpMulticastConfiguration configuration)
void addSourceMembership(TransportUdpMulticastSourceConfiguration configuration)
void dropSourceMembership(TransportUdpMulticastSourceConfiguration configuration)
}

Methodsโ€‹

addMembershipโ€‹

See IP_ADD_MEMBERSHIP.

dropMembershipโ€‹

See IP_DROP_MEMBERSHIP.

addSourceMembershipโ€‹

See IP_ADD_SOURCE_MEMBERSHIP.

dropSourceMembershipโ€‹

See IP_DROP_SOURCE_MEMBERSHIP.

TransportUdpMulticastSourceConfigurationโ€‹

Parametersโ€‹

NameTypeDescription
groupAddressStringip_mreq_source
localAddressStringip_mreq_source
sourceAddressStringip_mreq_source

TransportUnixStreamClientConfigurationโ€‹

Parametersโ€‹

NameTypeDescriptionDefaults
poolintConnections in the pool1
connectTimeoutDurationTimeout for connect operationsDuration(seconds: 60)
readTimeoutDurationTimeout for socket read operationsDuration(seconds: 60)
writeTimeoutDurationTimeout for socket write operationsDuration(seconds: 60)
socketReceiveBufferSizeint?SO_RCVBUF4 * 1024 * 1024
socketSendBufferSizeint?SO_SNDBUF4 * 1024 * 1024
socketNonblockbool?O_NONBLOCKtrue
socketCloexecbool?O_CLOEXECtrue
socketKeepalivebool?SO_KEEPALIVE
socketReceiveLowAtint?SO_RCVLOWAT
socketSendLowAtint?SO_SNDLOWAT

TransportUnixStreamServerConfigurationโ€‹

Parametersโ€‹

NameTypeDescriptionDefaults
readTimeoutDurationTimeout for socket read operationsโˆž
writeTimeoutDurationTimeout for socket write operationsโˆž
socketReceiveBufferSizeint?SO_RCVBUF4 * 1024 * 1024
socketSendBufferSizeint?SO_SNDBUF4 * 1024 * 1024
socketNonblockbool?O_NONBLOCKtrue
socketCloexecbool?O_CLOEXECtrue
socketKeepalivebool?SO_KEEPALIVE
socketReceiveLowAtint?SO_RCVLOWAT
socketSendLowAtint?SO_SNDLOWAT

TransportWorkerConfigurationโ€‹

Parametersโ€‹

NameTypeDescriptionDefaults
buffersCountintio_uring mapped buffers count4096
bufferSizeintio_uring single buffer size4096
ringSizeintio_uring setup size16384
ringFlagsintio_uring setup size0
timeoutCheckerPeriodDurationHow often to check for the timed out eventsDuration(milliseconds: 500)
delayRandomizationFactordoubleMultiplier to a random value used for idle delay calculation0.25
cqePeekCountintHow long CQEs to peek on each loop iteration?1024
cqeWaitCountintHow long CQEs wait on each loop iteration?1
cqeWaitTimeoutDurationHow long to wait for new CQEs?Duration(milliseconds: 1)
baseDelayDurationDefault (mandatory) idle delay between loop operationsDuration(microseconds: 10)
maxDelayDurationMaximal idle delay between loop iterationDuration(seconds: 5)
traceboolEnable/Disable event tracingfalse