|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
Options used for the configuration of the underlying system socket in the StreamingSocket and DatagramSocket classes. More...
#include "juce_Socket.h"
Public Member Functions | |
| SocketOptions | withReceiveBufferSize (int size) const |
| The provided size will be used to configure the socket's SO_RCVBUF property. | |
| SocketOptions | withSendBufferSize (int size) const |
| The provided size will be used to configure the socket's SO_SNDBUF property. | |
| auto | getReceiveBufferSize () const |
| auto | getSendBufferSize () const |
Options used for the configuration of the underlying system socket in the StreamingSocket and DatagramSocket classes.
@tags{Core}
Definition at line 34 of file juce_Socket.h.
| auto juce::SocketOptions::getReceiveBufferSize | ( | ) | const |
Definition at line 60 of file juce_Socket.h.
| auto juce::SocketOptions::getSendBufferSize | ( | ) | const |
Definition at line 63 of file juce_Socket.h.
| SocketOptions juce::SocketOptions::withReceiveBufferSize | ( | int | size | ) | const |
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.
Definition at line 44 of file juce_Socket.h.
| SocketOptions juce::SocketOptions::withSendBufferSize | ( | int | size | ) | const |
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.
Definition at line 54 of file juce_Socket.h.