# tcpserversink

## Example launch line (server):

     gst-launch-1.0 fdsrc fd=1 ! tcpserversink port=3000

## Example launch line (client):

     gst-launch-1.0 tcpclientsrc port=3000 ! fdsink fd=2

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstBaseSink
                        ╰──GstMultiHandleSink
                            ╰──GstMultiSocketSink
                                ╰──tcpserversink

## Factory details

Authors: – Thomas Vander Stichele <thomas at apestaart dot org></thomas>

Classification: – `Sink/Network`

Rank – none

Plugin – tcp

Package – GStreamer Base Plug-ins

## Pad Templates

### `sink`

    ANY

Presence – always

Direction – sink

Object type – GstPad

## Properties

### current-port

    “current-port” gint

The port number the socket is currently bound to. Applications can use this property to retrieve the port number actually bound to in case the port requested was 0 (=allocate a random available port).

Flags : Read

Default value : 0

Since : 1.0.2

### host

    “host” gchararray

The host/IP to listen on

Flags : Read / Write

Default value : localhost

### port

    “port” gint

The port to listen to (0=random available port)

Flags : Read / Write

Default value : 4953

The results of the search are