mirror of
https://github.com/storytold/UE4-OSC.git
synced 2026-10-17 00:25:12 +00:00
compilefix: shipping builds
This commit is contained in:
@@ -61,6 +61,7 @@ void UOscSettings::Send(const uint8 *buffer, int32 length, int32 targetIndex)
|
|||||||
SendImpl(&_sendSocket.Get(), buffer, length, *address.second);
|
SendImpl(&_sendSocket.Get(), buffer, length, *address.second);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !NO_LOGGING
|
||||||
// Log sent packet
|
// Log sent packet
|
||||||
if(!LogOSC.IsSuppressed(ELogVerbosity::Verbose))
|
if(!LogOSC.IsSuppressed(ELogVerbosity::Verbose))
|
||||||
{
|
{
|
||||||
@@ -69,11 +70,13 @@ void UOscSettings::Send(const uint8 *buffer, int32 length, int32 targetIndex)
|
|||||||
const auto encoded = FBase64::Encode(tmp);
|
const auto encoded = FBase64::Encode(tmp);
|
||||||
UE_LOG(LogOSC, Verbose, TEXT("SentAll: %s"), *encoded);
|
UE_LOG(LogOSC, Verbose, TEXT("SentAll: %s"), *encoded);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else if(targetIndex < _sendAddresses.Num())
|
else if(targetIndex < _sendAddresses.Num())
|
||||||
{
|
{
|
||||||
SendImpl(&_sendSocket.Get(), buffer, length, *_sendAddresses[targetIndex].second);
|
SendImpl(&_sendSocket.Get(), buffer, length, *_sendAddresses[targetIndex].second);
|
||||||
|
|
||||||
|
#if !NO_LOGGING
|
||||||
// Log sent packet
|
// Log sent packet
|
||||||
if(!LogOSC.IsSuppressed(ELogVerbosity::Verbose))
|
if(!LogOSC.IsSuppressed(ELogVerbosity::Verbose))
|
||||||
{
|
{
|
||||||
@@ -83,6 +86,7 @@ void UOscSettings::Send(const uint8 *buffer, int32 length, int32 targetIndex)
|
|||||||
const auto target = _sendAddresses[targetIndex].second->ToString(true);
|
const auto target = _sendAddresses[targetIndex].second->ToString(true);
|
||||||
UE_LOG(LogOSC, Verbose, TEXT("SentTo %s: %s"), *target, *encoded);
|
UE_LOG(LogOSC, Verbose, TEXT("SentTo %s: %s"), *target, *encoded);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -182,12 +182,14 @@ void UOscDispatcher::Callback(const FArrayReaderPtr& data, const FIPv4Endpoint&)
|
|||||||
ENamedThreads::GameThread);
|
ENamedThreads::GameThread);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !NO_LOGGING
|
||||||
// Log received packet
|
// Log received packet
|
||||||
if(!LogOSC.IsSuppressed(ELogVerbosity::Verbose))
|
if(!LogOSC.IsSuppressed(ELogVerbosity::Verbose))
|
||||||
{
|
{
|
||||||
const auto encoded = FBase64::Encode(*data);
|
const auto encoded = FBase64::Encode(*data);
|
||||||
UE_LOG(LogOSC, Verbose, TEXT("Received: %s"), *encoded);
|
UE_LOG(LogOSC, Verbose, TEXT("Received: %s"), *encoded);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void UOscDispatcher::CallbackMainThread()
|
void UOscDispatcher::CallbackMainThread()
|
||||||
|
|||||||
Reference in New Issue
Block a user