We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78a6a53 commit 7cca372Copy full SHA for 7cca372
addons/ofxOsc/libs/oscpack/src/ip/win32/UdpSocket.cpp
@@ -447,7 +447,11 @@ class SocketReceiveMultiplexer::Implementation{
447
timerQueue_.push_back( std::make_pair( currentTimeMs + i->initialDelayMs, *i ) );
448
std::sort( timerQueue_.begin(), timerQueue_.end(), CompareScheduledTimerCalls );
449
450
- const int MAX_BUFFER_SIZE = 4098;
+ unsigned long maxSize = UdpSocket::GetUdpBufferSize();
451
+ if( maxSize == 0 ) {
452
+ maxSize = 4098;
453
+ }
454
+ const unsigned long MAX_BUFFER_SIZE = maxSize;
455
char *data = new char[ MAX_BUFFER_SIZE ];
456
IpEndpointName remoteEndpoint;
457
0 commit comments