gstreamer/gst/tcp
Wim Taymans d4474d8ad1 gst/tcp/gstmultifdsink.c: Fix wrong GList iteration that could crash the server when more then 2 clients disconnect a...
Original commit message from CVS:
* gst/tcp/gstmultifdsink.c: (gst_recover_policy_get_type),
(gst_multifdsink_class_init), (gst_multifdsink_add),
(gst_multifdsink_remove), (gst_multifdsink_clear),
(gst_multifdsink_client_remove),
(gst_multifdsink_handle_client_read),
(gst_multifdsink_client_queue_data),
(gst_multifdsink_client_queue_caps),
(gst_multifdsink_client_queue_buffer),
(gst_multifdsink_handle_client_write),
(gst_multifdsink_recover_client), (gst_multifdsink_queue_buffer),
(gst_multifdsink_handle_clients), (gst_multifdsink_thread),
(gst_multifdsink_init_send), (gst_multifdsink_close):
Fix wrong GList iteration that could crash the server when
more then 2 clients disconnect at the same time. Read all the
pending commands in one batch to recover from command storms under
very heavy load.
2004-06-29 10:28:29 +00:00
..
.gitignore add new tcp elements 2004-05-20 10:15:31 +00:00
gstmultifdsink.c gst/tcp/gstmultifdsink.c: Fix wrong GList iteration that could crash the server when more then 2 clients disconnect a... 2004-06-29 10:28:29 +00:00
gstmultifdsink.h gst/tcp/: More multifdsink fixes, more recovery policy fixes. 2004-06-27 11:15:23 +00:00
gsttcp-marshal.list uniformized; added signals to serversink for new and removed clients 2004-06-08 09:12:12 +00:00
gsttcp.c looping read for caps and headers 2004-06-08 15:47:53 +00:00
gsttcp.h add new tcp elements 2004-05-20 10:15:31 +00:00
gsttcpclientsink.c ext/tcp/*: Revert Zaheer changes, to make things actually work again. 2004-06-17 09:10:57 +00:00
gsttcpclientsink.h ext/tcp/*: Revert Zaheer changes, to make things actually work again. 2004-06-17 09:10:57 +00:00
gsttcpclientsrc.c don't override offset and offset_end 2004-06-25 13:05:11 +00:00
gsttcpclientsrc.h read caps in connect 2004-06-17 18:20:43 +00:00
gsttcpplugin.c gst/tcp/: Added multifdsink, made tcpserversink a subclass of fdsink, removed one of the locks, added recovery policy... 2004-06-26 16:49:42 +00:00
gsttcpplugin.h *.h: Revert indenting 2004-03-15 16:32:55 +00:00
gsttcpserversink.c gst/tcp/: More multifdsink fixes, more recovery policy fixes. 2004-06-27 11:15:23 +00:00
gsttcpserversink.h gst/tcp/: Added multifdsink, made tcpserversink a subclass of fdsink, removed one of the locks, added recovery policy... 2004-06-26 16:49:42 +00:00
gsttcpserversrc.c ext/tcp/*: Revert Zaheer changes, to make things actually work again. 2004-06-17 09:10:57 +00:00
gsttcpserversrc.h ext/tcp/*: Revert Zaheer changes, to make things actually work again. 2004-06-17 09:10:57 +00:00
gsttcpsink.c ext/mad/gstid3tag.c: Add stdlib.h 2004-04-20 23:03:28 +00:00
gsttcpsink.h gsttcp -> gsttcpplugin 2004-05-19 15:07:44 +00:00
gsttcpsrc.c first batch : remove ',' at end of enums as they could confuse older gcc, foreign compilers (forte) and gtk-doc 2004-05-21 22:39:30 +00:00
gsttcpsrc.h gsttcp -> gsttcpplugin 2004-05-19 15:07:44 +00:00
Makefile.am gst/tcp/: Added multifdsink, made tcpserversink a subclass of fdsink, removed one of the locks, added recovery policy... 2004-06-26 16:49:42 +00:00
README add new tcp elements 2004-05-20 10:15:31 +00:00

This part of the documentation is for the new tcp elements:
- tcpclientsrc
- tcpclientsink
- tcpserversrc
- tcpserversink
                                                                                
which are created to replace the old tcpsrc/tcpsink
                                                                                
TESTS
-----
Use these tests to test functionality of the various tcp plugins

* server: nc -l -p 3000
  client: nc localhost 3000
  everything you type in the server is shown on the client
  everything you type in the client is shown on the server

* server: nc -l -p 3000
  client: gst-launch tcpclientsrc protocol=none port=3000 ! fdsink fd=2
  everything you type in the server is shown on the client

* server: nc -l -p 3000
  client: gst-launch fdsrc fd=1 ! tcpclientsink protocol=none port=3000
  everything you type in the client is shown on the server

* server: gst-launch tcpserversrc protocol=none port=3000 ! fdsink fd=2
  client: gst-launch fdsrc fd=1 ! tcpclientsink protocol=none port=3000


TODO
----
- implement DNS resolution

--------

This is the old documentation for the original tcpsrc/tcpsink elements.

* What is TCP src/sink?

solution, like icecast or realaudio or whatever.
But the future RTP plugins shall not do the actual transmission/reception
of packets on the network themselve but the Application developer would be
encouraged to use either the TCP or the UDP plugins for that. UDP would be
used mostly but there could be situations where TCP would be the only
available choice. For example streaming accross firewalls that do not
allow UDP.

* Shortcomings

Even given our modest ambitions, the current code doesn't handle
caps negotiation robustly.

* Todo

The caps nego should do bi-directional negotiation.

Perhaps this plugin can be the example of how to do caps negotiation
via a point-to-point protocol.

12 Sep 2001
Wim Taymans <wim.taymans@chello.be>
Joshua N Pritikin <vishnu@pobox.com>
Zeeshan Ali <zak147@yahoo.com>