|

楼主 |
发表于 2022-8-30 21:37
|
显示全部楼层
附件是for armbian n1 aarch64 的版本。
相比较udpxy, msd_lite是支持ipv6的客户端的。
- <div><?xml version="1.0" encoding="utf-8"?>
- <!--
- Sizes in kb, time in seconds
- -->
- <!--
- <skt> <rcvLoWatermark>XXXX</rcvLoWatermark> - DOES NOT WORK on Linux!
- man socket(7):
- ...
- The select(2) and poll(2) system calls currently do not respect the SO_RCVLOWAT
- setting on Linux, and mark a socket readable when even a single byte of data is
- available.
- ...
- -->
- <msd>
- <span style="white-space:pre"> </span><log>
- <span style="white-space:pre"> </span><file>/var/log/msd_lite.log</file>
- <span style="white-space:pre"> </span></log>
- <span style="white-space:pre"> </span><threadPool>
- <span style="white-space:pre"> </span><threadsCountMax>1</threadsCountMax> <!-- 0 = auto -->
- <span style="white-space:pre"> </span><fBindToCPU>yes</fBindToCPU> <!-- Bind threads to CPUs. -->
- <span style="white-space:pre"> </span><fCacheGetTimeSyscall>yes</fCacheGetTimeSyscall> <!-- Cache gettime() syscalls.. -->
- <span style="white-space:pre"> </span><timerGranularity>100</timerGranularity> <!-- 1/1000 sec -->
- <span style="white-space:pre"> </span></threadPool>
- <!-- HTTP server -->
- <span style="white-space:pre"> </span><HTTP>
- <span style="white-space:pre"> </span><bindList>
- <span style="white-space:pre"> </span><bind><address>0.0.0.0:7088</address><fAcceptFilter>y</fAcceptFilter></bind>
- <span style="white-space:pre"> </span><bind><address>[::]:7088</address></bind>
- <span style="white-space:pre"> </span></bindList>
- <span style="white-space:pre"> </span><hostnameList> <!-- Host names for all bindings. -->
- <span style="white-space:pre"> </span><hostname>*</hostname>
- <span style="white-space:pre"> </span></hostnameList>
- <span style="white-space:pre"> </span></HTTP>
- <span style="white-space:pre"> </span><hubProfileList> <!-- Stream hub profiles templates. -->
- <span style="white-space:pre"> </span><hubProfile>
- <span style="white-space:pre"> </span><fDropSlowClients>no</fDropSlowClients> <!-- Disconnect slow clients. -->
- <span style="white-space:pre"> </span><fSocketHalfClosed>no</fSocketHalfClosed> <!-- Enable shutdown(SHUT_RD) for clients. -->
- <span style="white-space:pre"> </span><fSocketTCPNoDelay>yes</fSocketTCPNoDelay> <!-- Enable TCP_NODELAY for clients. -->
- <span style="white-space:pre"> </span><fSocketTCPNoPush>yes</fSocketTCPNoPush> <!-- Enable TCP_NOPUSH / TCP_CORK for clients. -->
- <span style="white-space:pre"> </span><precache>4096</precache> <!-- Pre cache size. Can be overwritten by arg from user request. -->
- <span style="white-space:pre"> </span><ringBufSize>1024</ringBufSize> <!-- Stream receive ring buffer size. Must be multiple of sndBlockSize. -->
- <span style="white-space:pre"> </span><skt>
- <span style="white-space:pre"> </span><sndBuf>512</sndBuf> <!-- Max send block size, apply to clients sockets only, must be > sndBlockSize. -->
- <span style="white-space:pre"> </span><sndLoWatermark>64</sndLoWatermark> <!-- Send block size. Must be multiple of 4. -->
- <span style="white-space:pre"> </span><congestionControl>htcp</congestionControl> <!-- TCP_CONGESTION: this value replace/overwrite(!) all others cc settings: cc from http req args, http server settings, OS default -->
- <span style="white-space:pre"> </span></skt>
- <span style="white-space:pre"> </span><headersList> <!-- Custom HTTP headers (sended before stream). -->
- <span style="white-space:pre"> </span><header>Pragma: no-cache</header>
- <span style="white-space:pre"> </span><header>Content-Type: video/mpeg</header>
- <span style="white-space:pre"> </span><header>ContentFeatures.DLNA.ORG: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000</header>
- <span style="white-space:pre"> </span><header>TransferMode.DLNA.ORG: Streaming</header>
- <span style="white-space:pre"> </span></headersList>
- <span style="white-space:pre"> </span></hubProfile>
- <span style="white-space:pre"> </span></hubProfileList>
- <span style="white-space:pre"> </span><sourceProfileList> <!-- Stream source profiles templates. -->
- <span style="white-space:pre"> </span><sourceProfile>
- <span style="white-space:pre"> </span><skt>
- <span style="white-space:pre"> </span><rcvBuf>512</rcvBuf> <!-- Multicast recv socket buf size. -->
- <span style="white-space:pre"> </span><rcvLoWatermark>48</rcvLoWatermark> <!-- Actual cli_snd_block_min if polling is off. -->
- <span style="white-space:pre"> </span><rcvTimeout>2</rcvTimeout> <!-- STATUS, Multicast recv timeout. -->
- <span style="white-space:pre"> </span></skt>
- <span style="white-space:pre"> </span><multicast> <!-- For: multicast-udp and multicast-udp-rtp. -->
- <span style="white-space:pre"> </span><ifName>eth0</ifName> <!-- For multicast receive. -->
- <span style="white-space:pre"> </span></multicast>
- <span style="white-space:pre"> </span></sourceProfile>
- <span style="white-space:pre"> </span></sourceProfileList>
- </msd>
- </div>
复制代码 可能需要根据你的实际修改一下ifName网卡的名字。
|
|