This is an old revision of the document!
**This page is not fully translated, yet. Please help completing the translation.**
(remove this paragraph once the translation is finished)
The client request goes to integrated web server.
Settings are applied as described in section [[en:software:msd:config#HTTP|HTTP]] subsection [[en:software:msd:config#skt|skt]] and [[en:software:msd:config#congestionControl|congestionControl]].
Client socket is passed to the existing Stream Hub, or Stream Hub can be created on request.
For each channel, created its own Stream Hub.
To one Stream Hub can connect multiple clients.
Stream Hub has a unique name by which identified. For dynamic Stream Hub is generated based on the request URL. Channels from the configuration file, it is the name of the channel.
Stream Hub привязывается к одному потоку (thread + kqueue/epoll).
Каждый поток привязывается (bind) к ядру процессора. Можно настроить количество потоков и привязку к процессорам.
Stream Hub is bound to a single thread (thread + kqueue/epoll).
Each thread is bound to the processor core. You can configure the number of threads and processor affinity.
Stream Hub may have one or more sources (multicast, http etc).
Each source has its own circular buffer (ring Buf) to receive data.
Stream Hub as data become available from the active source sends data to clients from the ring buffer.
New client Stream Hub can send MPEG2-TS service headers (flag [[en:software:msd:config#fMPEG2TSAnalyzing|fMPEG2TSAnalyzing]] in the config file).
It is necessary to initialize the decoder client and not drop a MPEG2-TS packets in the search of a service data. Just Stream Hub can send specified in [[en:software:msd:config#precache|config file]] / [[en:software:msd:urls#precache|URL query]] number of kilobytes precache from the ring buffer.