dccpclientsrc

dccpclientsrc

Properties

GstCaps * caps Read / Write
gint ccid Read / Write
gboolean close-socket Read / Write
gchar * host Read / Write
gint port Read / Write
gint sockfd Read / Write

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── GstObject
        ╰── GstElement
            ╰── GstBaseSrc
                ╰── GstPushSrc
                    ╰── GstDCCPClientSrc

Description

This element connect to a DCCP server and send data to it.

DCCP (Datagram

Congestion Control Protocol) is a Transport Layer protocol like TCP and UDP.

Example pipeline

1
gst-launch -v dccpclientsrc host=localhost port=9011 ccid=2 ! decodebin ! alsasink

Client

1
gst-launch -v filesrc location=music.mp3 ! mp3parse ! dccpserversink port=9011 ccid=2

Server This example pipeline will send a MP3 stream to the client using DCCP. The client will decode the MP3 and play it. Run the server pipeline first than the client pipeline. If you want, you can run more than one dccpclientsrc to connect to the same server (see wait-connections property at dccpserversink).

Functions

Types and Values

struct GstDCCPClientSrc

struct GstDCCPClientSrc;

Property Details

The “caps” property

  “caps”                     GstCaps *

The caps of the source pad.

Flags: Read / Write

The “ccid” property

  “ccid”                     gint

The Congestion Control IDentified to be used.

Flags: Read / Write

Allowed values: >= 2

Default value: 2

The “close-socket” property

  “close-socket”             gboolean

Close socket at the end of stream.

Flags: Read / Write

Default value: TRUE

The “host” property

  “host”                     gchar *

The host IP address to receive packets from.

Flags: Read / Write

Default value: "127.0.0.1"

The “port” property

  “port”                     gint

The port to receive packets from.

Flags: Read / Write

Allowed values: [0,65535]

Default value: 5001

The “sockfd” property

  “sockfd”                   gint

The socket file descriptor.

Flags: Read / Write

Allowed values: >= -1

Default value: -1

Signal Details

The “connected” signal

void
user_function (GstDCCPClientSrc *gstdccpclientsrc,
               gint              arg1,
               gpointer          user_data)

Flags: Run First

See Also

dccpclientsink, dccpserversink, dccpserversrc