tcpserversink: can it serve multiple clients? or only one client?
i cannot find this information
tcpserversink: can it serve multiple clients? or only one client?
i cannot find this information
Yes. It can serve multiple clients. Multiple tcpclientsrc
can connect to the same tcpserversink
.
With gst-inspect-1.0 tcpserversink
you can see
num-handles : The current number of client handles
flags: readable
Unsigned Integer. Range: 0 - 4294967295 Default: 0
And
Element Signals:
"client-added" : void user_function (GstElement * object,
GObject * arg0,
gpointer user_data);
"client-removed" : void user_function (GstElement * object,
GSocket * arg0,
GstMultiHandleSinkClientStatus arg1,
gpointer user_data);
The tool gst-inspect-1.0
often has more information about an element than what’s available online at tcpserversink
And of course you can verify it by setting up two pipelines, a server and a client, and running multiple instances of the client pipeline.
You can also find more details by looking at it’s base class documentation MultiSocketSink.
thank you, it works fine