• Home
Name Date Size #Lines LOC

..--

READMED12-May-20241.9 KiB5443

gstmultifdsink.cD12-May-202438.7 KiB1,142693

gstmultifdsink.hD12-May-20242.8 KiB9744

gstmultihandlesink.cD12-May-202470.8 KiB2,2101,609

gstmultihandlesink.hD12-May-202411.8 KiB304170

gstmultisocketsink.cD12-May-202444.3 KiB1,305818

gstmultisocketsink.hD12-May-20243 KiB9645

gstsocketsrc.cD12-May-202413.7 KiB479337

gstsocketsrc.hD12-May-20242 KiB6932

gsttcpclientsink.cD12-May-202412.1 KiB427299

gsttcpclientsink.hD12-May-20242.2 KiB7536

gsttcpclientsrc.cD12-May-202416.6 KiB573405

gsttcpclientsrc.hD12-May-20242.2 KiB7738

gsttcpelements.cD12-May-20243.2 KiB11366

gsttcpelements.hD12-May-20241.8 KiB5022

gsttcpplugin.cD12-May-20241.6 KiB5124

gsttcpserversink.cD12-May-202412.9 KiB442315

gsttcpserversink.hD12-May-20242.4 KiB7936

gsttcpserversrc.cD12-May-202417.7 KiB603437

gsttcpserversrc.hD12-May-20242.3 KiB7639

gsttcpsrcstats.cD12-May-20241.3 KiB3934

gsttcpsrcstats.hD12-May-2024118 53

meson.buildD12-May-2024656 2825

README

1This part of the documentation is for the new tcp elements:
2- tcpclientsrc
3- tcpclientsink
4- tcpserversrc
5- tcpserversink
6
7TESTS
8-----
9Use these tests to test functionality of the various tcp plugins
10
11* server: nc -l -p 3000
12  client: nc localhost 3000
13  everything you type in the server is shown on the client
14  everything you type in the client is shown on the server
15
16* server: nc -l -p 3000
17  client: gst-launch tcpclientsrc protocol=none port=3000 ! fdsink fd=2
18  everything you type in the server is shown on the client
19
20* server: nc -l -p 3000
21  client: gst-launch fdsrc fd=1 ! tcpclientsink protocol=none port=3000
22  everything you type in the client is shown on the server
23
24* server: gst-launch tcpserversrc protocol=none port=3000 ! fdsink fd=2
25  client: gst-launch fdsrc fd=1 ! tcpclientsink protocol=none port=3000
26
27* server: gst-launch fdsrc fd=1 ! tcpserversink protocol=none port=3000
28  client: gst-launch tcpclientsrc protocol=none port=3000 ! fdsink fd=2
29  -> Received first buffer without caps set
30
31TODO
32----
33- implement DNS resolution
34
35multifdsink
36-----------
37- operation:
38  - client fd gets added when "add" signal gets emitted on multifdsink
39  - signal handler creates a GstTCPClient structure, adds it to ->clients,
40    and adds the fd to ->fd_hash, then emits client-added
41  - client
42
43  - when a buffer comes in:
44    - the _render vmethod puts the buffer on the global queue
45    - and increases bytes_to_serve
46    - (currently it sets streamheaders, but since this is treated globally
47       this is wrong - clients can be at different positions in the stream)
48
49  - when a client issues a write (ie requests data):
50    - when using GDP, if no caps sent yet, send caps first, then set caps_sent
51    - if streamheader buffers, and we haven't sent yet to this client,
52      send current streamheader buffers, then set streamheader_sent
53    - send out buffers
54