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 – tcp

Package – GStreamer Base Plug-ins

Pad Templates

src

ANY

Presencealways

Directionsrc

Object typeGstPad


Properties

host

“host” gchararray

The host IP address to receive packets from

Flags : Read / Write

Default value : localhost


port

“port” gint

The port to receive packets from

Flags : Read / Write

Default value : 4953


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


The results of the search are