socketsrc

socketsrc — Receive data from a socket

Types and Values

struct GstSocketSrc

Description

Receive data from a socket.

As compared to other elements:

socketsrc can be considered a source counterpart to the multisocketsink sink.

socketsrc can also be considered a generalization of tcpclientsrc and tcpserversrc: it contains all the logic required to communicate over the socket but none of the logic for creating the sockets/establishing the connection in the first place, allowing the user to accomplish this externally in whatever manner they wish making it applicable to other types of sockets besides TCP.

As compared to fdsrc socketsrc is socket specific and deals with GSocket objects rather than sockets via integer file-descriptors.

see_also : multisocketsink

Synopsis

Element Information

plugin

tcp

author

William Manley <will@williammanley.net>

class

Source/Network

Element Pads

name

src

direction

source

presence

always

details

ANY

Functions

Types and Values

struct GstSocketSrc

struct GstSocketSrc {
  GstPushSrc element;
};