dccpserversrc

## dccpserversrc dccpserversrc — Receive data as a server over the network via DCCP |

## 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

void | connected | Run First

## Types and Values

struct | GstDCCPServerSrc

## Object Hierarchy

        GObject
        ╰── GstObject
            ╰── GstElement
                ╰── GstBaseSrc
                    ╰── GstPushSrc
                        ╰── GstDCCPServerSrc

## Description

This element wait for connection from a client and receive data.

DCCP (Datagram

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

### Example pipeline

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

Client

    1
    gst-launch -v dccpserversrc port=9011 ccid=2 ! decodebin ! alsasink

Server This example pipeline will send a MP3 stream to the server using DCCP. The server will decode the MP3 and play it. Run the server pipeline first than the client pipeline.

## Synopsis

### Element Information

plugin | dccp
author | E-Phone Team at Federal University of Campina Grande <leandroal@gmail.com>
class | Source/Network

### Element Pads

name | src
direction | source
presence | always
details | ANY

## Functions

## Types and Values

### struct GstDCCPServerSrc

    struct GstDCCPServerSrc;

## 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 client socket at the end of stream.

Flags: Read / Write

Default value: TRUE

### The `“host”` property

      “host”                     gchar *

The hostname to listen as.

Flags: Read / Write

Default value: NULL

### The `“port”` property

      “port”                     gint

The port to listen to.

Flags: Read / Write

Allowed values: [0,65535]

Default value: 5001

### The `“sockfd”` property

      “sockfd”                   gint

The client socket file descriptor.

Flags: Read / Write

Allowed values: >= -1

Default value: -1

## Signal Details

### The `“connected”` signal

    void
    user_function (GstDCCPServerSrc *gstdccpserversrc,
                   gint              arg1,
                   gpointer          user_data)

#### Parameters

gstdccpserversrc | the object which received the signal. |
user_data | user data set when the signal handler was connected. |

Flags: Run First

## See Also

dccpclientsink, dccpclientsrc, dccpserversink