I want to build a server/client application, where a smartphone streams real-time data from the device to a stationary computer. They are connected directly via WiFi.
The streamed data shall include
- audio data (at least 44.1 kHz, 16 Bit)
- video data (no high quality is required, e.g. 640 x 320 pixels or similar), and
- from different sensors (e.g. accelerometer, GPS, gyroscope, etc.)
As you may notice, all data source are very different in sampling rate (44.1 kHz for audio vs. 100 Hz for accelerometer vs. variable for GPS (event-based)) and amount of data (video with lots of data vs. GPS with only some bytes).
Is it better (in terms of real-time performance and delay) to tunnel the data through one TCP connection, or to use for each data type an own TCP connection? Is it worth to got with UDP?