tcpclientsrc
Example launch line (server):
nc -l -p 3000
Example launch line (client):
gst-launch-1.0 tcpclientsrc port=3000 ! fdsink fd=2
everything you type in the server is shown on the client. If you want to detect network failures and/or limit the time your tcp client keeps waiting for data from server setting a timeout value can be useful.
Hierarchy
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstBaseSrc ╰──GstPushSrc ╰──tcpclientsrc
Factory details
Authors: – Thomas Vander Stichele
Classification: – Source/Network
Rank – none
Plugin – gsttcp
Package – GStreamer Base Plug-ins
Pad Templates
Properties
blocksize
“blocksize” guint
Size in bytes to read per buffer (-1 = default)
Flags : Read / Write
Default value : 4096
do-timestamp
“do-timestamp” gboolean
Apply current stream time to buffers
Flags : Read / Write
Default value : false
host
“host” gchararray
The host IP address to receive packets from
Flags : Read / Write
Default value : localhost
num-buffers
“num-buffers” gint
Number of buffers to output before sending EOS (-1 = unlimited)
Flags : Read / Write
Default value : -1
stats
“stats” GstStructure *
Retrieve a statistics structure
Flags : Read
Default value :
GstTCPClientSrcStats, bytes-received=(guint64)0;
timeout
“timeout” guint
Value in seconds to timeout a blocking I/O. 0 = No timeout.
Flags : Read / Write
Default value : 0
typefind
“typefind” gboolean
Run typefind before negotiating (deprecated, non-functional)
Flags : Read / Write
Default value : false
The results of the search are