1#
2# Copyright 2008-2012 Pavel V. Cherenkov (pcherenkov@gmail.com)
3#
4#  This file is part of udpxy.
5#
6#  udpxy is free software: you can redistribute it and/or modify
7#  it under the terms of the GNU General Public License as published by
8#  the Free Software Foundation, either version 3 of the License, or
9#  (at your option) any later version.
10#
11#  udpxy is distributed in the hope that it will be useful,
12#  but WITHOUT ANY WARRANTY; without even the implied warranty of
13#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14#  GNU General Public License for more details.
15#
16#  You should have received a copy of the GNU General Public License
17#  along with udpxy.  If not, see <http://www.gnu.org/licenses/>.
18#
19
20�������������� ����������������
21--------------------
22
23udpxy - ������������������ �������������������� (daemon) ������ ���������������� ������������ ���� ���������������� ������������ �������������������� ������������
24(������������������ ���� UDP) �� HTTP �������������������� ���������������������������� ��������������.
25
26udpxy - �������������������������������� ������������������ �� ������������������������ �� ������������������ GNU GPLv3.
27
28������������ �� ������������������:
29
30���������������������������� ���������������� ������ ���� ���������� *.tgz �� �������������������� ���� ������������ �� �������������� ��������������:
31        tar -xzvf udpxy.X.Y-ZZ.tgz
32    ������
33        gzip -dc udpxy.X.Y-ZZ.tgz | tar -xvf -
34
35������������������ �� �������������� GNU make �� gcc (������������ gcc �������������� �� 3.x ������������ ��������������,
36�������������������� ������������ ���� ���������������������� �������������������� ������������ ��������); ������ ������������ ������ ������������
37������������ ������������������������ (���� gcc) ���������� ������������������������ ������������������ �� Makefile.
38
39������������ 'make' ������ ������������������ ������������ ���������������� �� ������������ ������������ udpxy 'release'
40(������ �������������� assert(3), ������ �������������������� ����������������, �� ������������������������ ������������ �� ������������
41�������������� - verbose).
42
43������������ ������������ ������������:
44    debug (assert(3), �������������������� ��������������, ���������� verbose);
45    lean  (������ assert(3), ������ �������������������� ����������������, ������ ������������ verbose);
46    rdebug (���� ����, ������ �� release, ���� �� ���������������������� ������������������);
47    ldebug (���� ����, ������ �� lean, ���� �� ���������������������� ������������������).
48
49������ ���������������� ������������������ ������������ make, ���������������������� �������� udpxy ���������� ��������
50�������������������� �� ���������� ������������������ �������������������� �� ���������������������� ������������ - ��������������
51���������������������������� ���������� ������������������ ���� ������������������.
52
53udpxy ���������� �������� �������������� �� �������������������� ����������������������, ������������ ������,
54�� ��������������, ���������� �� ���������� ����������, ������������������������ ��������������, ������ ����������������
55�������������������� ������ ������������ �� �������������������� ����������������, �� ��.��. �������������� ����������������������
56�� �������������������������� �� ���������������� �������������������� ������������������ ������������ ���������� ����������������,
57�������� ������������������ udpxy ������ ��������������������.
58
59HTTP ��������������
60--------------------
61
62udpxy ������������������ ���� �������������� ������������������ HTTP (GET) ������ ������������������ ������������
63���� �������������������� ������������ �� ������������������������������ �������� ���������� �� ��������������������������
64HTTP ��������������������.
65
66������������ �������������� ������������������������������ ���������������� ������������ ���������������� ��������:
67
68http://address:port/cmd/mgroup_address[SEP]mgroup_port/
69
70[SEP] ::= :|%|~|+|-|^
71��.��. ��������������:
72    http://ip:port/cmd/mgroup_address:mgroup_port/
73    http://ip:port/cmd/mgroup_address%mgroup_port/
74    http://ip:port/cmd/mgroup_address~mgroup_port/
75    ......
76    http://ip:port/cmd/mgroup_address^mgroup_port/
77
78���������������������� �� ������������ ���������������������� ������������������.
79
80cmd ::= udp | rtp
81
82ip �� port �������������������������� ������������ �� ����������, ���� �������������� udpxy ������������������ ��������������,
83�� mgroup_address:mgroup_port ������������������ ���� �������������������� ������������ ������ ����������������.
84
85�������������������������� �������������� 'udp' ���������������� �� ������������������������ �������������������� ������������ ����
86������������������ �������������������� �������� ������������������������������ ("������������" MPEG-TS ��
87RTP c MPEG-TS); �������������������������� �������������� 'rtp' �������������������� ������������ udpxy
88���� RTP c MPEG-TS �� �������������� ������������������������.
89
90udpxy ������������������ '��������������-������������' ������ ������������ �� ������������ ���������� ���������������� ����
91������������������������������ ���������������� ������������, �������������������� ������������������������ �������������������� ��������������
92���������������������������� ������������������������������ �������������������� (����. �������������� ���������������������� ��
93��������������������������).
94
95udpxy ���������� ������������������������ ������������������ ���������������������������� HTTP ����������������, ���������� ������:
96
97http://address:port/status/  - �������������� ������������ ������������������ �� ��������������������
98http://address:port/restart/ - �������������� ������ �������������� �������������������� �� �������������������������� ������������������
99
100�������� ������������������������ �� ������������ �� ��������
101--------------
102
103udpxy ���������������� �������������������� ���������������������� MPEG-TS �� RTP �� MPEG-TS �� �������������������������������� ��������������;
104�������� udpxy ���������������� �������������������� RTP, ���� �������������������������� '����������������������' �� MPEG-TS, ���������� ��������
105���������������������� �������������������������� ���������� ��������������, ���� �������������������� �� RTP �������������� ���� ������������������ TCP.
106
107�������� ������ �������������������� ������ �������������������������������� �������� ���������� �������������� ���� ������������������������.
108
109������������ MPEG ������������ �� ��������
110--------------
111udpxy (�� �������������� ���������� 0.33) ������������������������������ ���������������������� ������������ ������������������������������
112������������ �� �������� "��������������" MPEG-TS �� ��������. ������������ �������������������������������� ������������������������������
113���������������������� ���������������������� �� ���������������������� �������������������� udpxrec, ���������������������� ����������
114������������ ���� udpxy (��.��. ������ �������������������� �������������������� �� ������������ ���������������� ���������� udpxy).
115
116udpxrec �������������������� ���������� �������������������� ������������ (������������������ udpxrec) ���� ����������������������
117�������� udpxy. (NB: ���� �������������������������������� ���������������������� �������� udpxy.)
118
119udpxrec �������������� MPEG ����������, �������������������� �� �������� ������������ MPEG-TS ������������; ����������������������
120����������-�������������� (�� 2008 ��������) ���� ���������� ���������������������� ���������������� ����������. ����������
121MPEG-TS ���������� �������� ������������������������������ �� (���������������� �������� ��������������) ������������ MPEG-PS
122������ ������������ ������������������ �������������� ������������ vlc (�������������� ���������������������� �� MPEG-TS, �� PS):
123
124vlc input-ts.mpg --sout="#std{access=file,mux=ps,dst=out-ps.mpg}"
125
126�������������������� �� �������������������� �������� MPEG-PS �������������������������� ������������������������ ����������-��������������.
127
128��������������������������
129--------------
130
131udpxy ������ �������������� ������ ������������ ���� POSIX-���������������������� ����������������.
132���� ������ �������� (����������������������) ������ ������������ ������������ �������������������� �� ���������������� ���� Linux
133������������ 2.4, 2.6 �� 3.�� (x86, amd64, ARM). ���� ������ *������������* ������������ �������� ����������������������������
134���� ���������� �������������� Linux, ���������������� ������ ���� ����������.
135
136������������������ (������������, ��.��. ���� ������������ 1.0) ������������ �������� ���������������������������� ���� HP-UX 11.11
137(PA-RISC 1.1, 2.0w).
138
139������ ���������� ������������ udpxy �������������� ���������������������������� ���� Linux �� FreeBSD (���� ������������ 9.0).
140�������������������� FreeBSD ���������� ������������������������ ���������������������� �������� udpxy, ����������������������
141���������� �������������� ������������ FreeBSD.
142
143����������������, ������ ���������� ��������������, �������������������� �������� udpxy ������ c��gwin. �������� ��������
144������������������������ �� ���������������������������� ���������� �������� �������� �������������� ��������������
145(������������������������ Alexey S ���� udpxy.com/forum).
146
147�������������������� ���������� ������ ������������������
148--------------
149udpxy �������������������� ������������������ �������������������� ���������� ������ ��������������������
150������������ ������������ ���������� ������������������ ������������; ������������ ��������������������
151���������������������� ������ ������ ����������, ������ ���� �������������� ���������� ��������������������
152�������������������������� (������ �������������� ������������ ���������������� ������������������ ����
153������������������ ������������).
154
155NB: �������� ����������-�������� ���������������� ������������������ ������������ ������������������������ �� �������������������������������� ��
156�������������������� ����������, ���� ���������������� ������������ ���������� ���������� �������������� ������������������.
157
158
159UDPXY_RCV_TMOUT         - ��������-������ (������������) ���� ������������ ������������������ (��������������������) ������������, ���� ������������������=5;
160UDPXY_DHOLD_TMOUT       - ��������-������ (������������) ���� ���������������������� ������������ ���������� ������������������ ������������(��,����), ���� ������������������=1;
161UDPXY_SREAD_TMOUT       - ��������-������ (������������) ���� ������������ ���� �������������������� ������������ (������������������ HTTP ����������������), ���� ������������������=1;
162UDPXY_SWRITE_TMOUT      - ��������-������ (������������) ���� ������������ �� ������������������ ���������� (������������������ HTTP ����������������), ���� ������������������=1;
163UDPXY_SSEL_TMOUT        - ��������-������ (������������) ���� select(2) �� ���������������� ���������� �������������� (���� ������������������������ ������ �������������������������� pselect(2)), ���� ������������������=30;
164UDPXY_LQ_BACKLOG        - ������������ �������������� �������������������� �������������������� ������������, ���� ������������������=16;
165UDPXY_SRV_RLWMARK       - ������������ �������������� ������������ (low watermark) on ���� ������������ ���������������� (��������������������) ������������, ���� ������������������=0 (���� ������������������������������);
166UDPXY_SSOCKBUF_NOSYNC   - ���� �������������������������������� ������������ ������������ (UDP) ������������ ���� ������������������ ������������������ -B, ���� ������������������=1 (��������������������������������);
167UDPXY_DSOCKBUF_NOSYNC   - ���� �������������������������������� ������������ ������������ (TCP) ������������ ���� ������������������ ������������������ -B, ���� ������������������=1 (��������������������������������);
168
169UDPXY_TCP_NODELAY       - ������������������ ���������������� ������������ (Nagle algorithm) ���� ������������������������ �������������� (���������������� ������������������������ ��������������), ���� ������������������=1;
170
171UDPXY_HTTP200_FTR_FILE - ���������������� �������������������� �������������� (��������������������) ���������� �� ������������ HTTP 200 ��������������, ���� ������������������=none;
172UDPXY_HTTP200_FTR_LN   - ���������������� ���������������� ������������ �� ������������  HTTP 200 ��������������, ���� ������������������=none;
173
174UDPXY_ALLOW_PAUSES     - �� ������������ ������������������������ ���� write(2), �������������������� ������������ ������������ ���� �������������������� ������������ (������������ ������������������������������ �������������������� -B), ���� ������������������=disabled;
175UDPXY_PAUSE_MSEC       - �������������������� ���������� ������������ ������������ �� N ���������������������� �� ������������ ������������������������ ���� write(2).
176UDPXY_CONTENT_TYPE     - ������������������������ ������������ ���������������� HTTP �������� Content-Type �� ������������ ���� HTTP ��������������.
177
178# --EOF--
179
180