|
|
@ -371,11 +371,24 @@ namespace client |
|
|
|
switch (buf[9]) |
|
|
|
switch (buf[9]) |
|
|
|
{ |
|
|
|
{ |
|
|
|
case PROTOCOL_TYPE_STREAMING: |
|
|
|
case PROTOCOL_TYPE_STREAMING: |
|
|
|
|
|
|
|
{ |
|
|
|
// streaming protocol
|
|
|
|
// streaming protocol
|
|
|
|
|
|
|
|
if (toPort) // not null
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
auto it = m_StreamingDestinationsByPorts.find (toPort); |
|
|
|
|
|
|
|
if (it != m_StreamingDestinationsByPorts.end ()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// found destination for specific port
|
|
|
|
|
|
|
|
it->second->HandleDataMessagePayload (buf, length); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// if port is zero, or destination for port not found, use default
|
|
|
|
if (m_StreamingDestination) |
|
|
|
if (m_StreamingDestination) |
|
|
|
m_StreamingDestination->HandleDataMessagePayload (buf, length); |
|
|
|
m_StreamingDestination->HandleDataMessagePayload (buf, length); |
|
|
|
else |
|
|
|
else |
|
|
|
LogPrint ("Missing streaming destination"); |
|
|
|
LogPrint ("Missing streaming destination"); |
|
|
|
|
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case PROTOCOL_TYPE_DATAGRAM: |
|
|
|
case PROTOCOL_TYPE_DATAGRAM: |
|
|
|
// datagram protocol
|
|
|
|
// datagram protocol
|
|
|
|