Options used for the configuration of the underlying system socket in the StreamingSocket and DatagramSocket classes.
- See also
- StreamingSocket, DatagramSocket
◆ withReceiveBufferSize()
SocketOptions juce::SocketOptions::withReceiveBufferSize |
( |
int | size | ) |
const |
|
nodiscard |
The provided size will be used to configure the socket's SO_RCVBUF property.
Increasing the buffer size can reduce the number of lost packets with the DatagramSocket class, if the socket is to receive packets in large bursts.
If this property is not specified, the system default value will be used, but a minimum of 65536 will be ensured.
References juce::withMember().
◆ withSendBufferSize()
SocketOptions juce::SocketOptions::withSendBufferSize |
( |
int | size | ) |
const |
|
nodiscard |
The provided size will be used to configure the socket's SO_SNDBUF property.
If this property is not specified, the system default value will be used, but a minimum of 65536 will be ensured.
References juce::withMember().
◆ getReceiveBufferSize()
auto juce::SocketOptions::getReceiveBufferSize |
( |
| ) |
const |
|
nodiscard |
◆ getSendBufferSize()
auto juce::SocketOptions::getSendBufferSize |
( |
| ) |
const |
|
nodiscard |