1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>tcpserversrc</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="GStreamer Base Plugins 0.10 Plugins Reference Manual">
8 <link rel="up" href="ch01.html" title="gst-plugins-base Elements">
9 <link rel="prev" href="gst-plugins-base-plugins-tcpclientsink.html" title="tcpclientsink">
10 <link rel="next" href="gst-plugins-base-plugins-tcpserversink.html" title="tcpserversink">
11 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17 <td><a accesskey="p" href="gst-plugins-base-plugins-tcpclientsink.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">GStreamer Base Plugins 0.10 Plugins Reference Manual</th>
21 <td><a accesskey="n" href="gst-plugins-base-plugins-tcpserversink.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#gst-plugins-base-plugins-tcpserversrc.synopsis" class="shortcut">Top</a>
26 <a href="#gst-plugins-base-plugins-tcpserversrc.description" class="shortcut">Description</a>
28 <a href="#gst-plugins-base-plugins-tcpserversrc.object-hierarchy" class="shortcut">Object Hierarchy</a>
30 <a href="#gst-plugins-base-plugins-tcpserversrc.properties" class="shortcut">Properties</a>
33 <div class="refentry">
34 <a name="gst-plugins-base-plugins-tcpserversrc"></a><div class="titlepage"></div>
35 <div class="refnamediv"><table width="100%"><tr>
37 <h2><span class="refentrytitle"><a name="gst-plugins-base-plugins-tcpserversrc.top_of_page"></a>tcpserversrc</span></h2>
38 <p>tcpserversrc — Receive data as a server over the network via TCP</p>
40 <td valign="top" align="right"></td>
42 <div class="refsynopsisdiv">
43 <a name="gst-plugins-base-plugins-tcpserversrc.synopsis"></a><h2>Synopsis</h2>
44 <a name="GstTCPServerSrc"></a><pre class="synopsis">struct <a class="link" href="gst-plugins-base-plugins-tcpserversrc.html#GstTCPServerSrc-struct" title="struct GstTCPServerSrc">GstTCPServerSrc</a>;
47 <div class="refsect1">
48 <a name="gst-plugins-base-plugins-tcpserversrc.object-hierarchy"></a><h2>Object Hierarchy</h2>
49 <pre class="synopsis">
50 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
51 +----<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstObject.html">GstObject</a>
52 +----<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html">GstElement</a>
53 +----<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-libs/html/GstBaseSrc.html">GstBaseSrc</a>
54 +----<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-libs/html/GstPushSrc.html">GstPushSrc</a>
58 <div class="refsect1">
59 <a name="gst-plugins-base-plugins-tcpserversrc.properties"></a><h2>Properties</h2>
60 <pre class="synopsis">
61 "<a class="link" href="gst-plugins-base-plugins-tcpserversrc.html#GstTCPServerSrc--host" title='The "host" property'>host</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
62 "<a class="link" href="gst-plugins-base-plugins-tcpserversrc.html#GstTCPServerSrc--port" title='The "port" property'>port</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
63 "<a class="link" href="gst-plugins-base-plugins-tcpserversrc.html#GstTCPServerSrc--protocol" title='The "protocol" property'>protocol</a>" <a class="link" href="gst-plugins-base-plugins-multifdsink.html#GstTCPProtocol" title="enum GstTCPProtocol"><span class="type">GstTCPProtocol</span></a> : Read / Write
66 <div class="refsect1">
67 <a name="gst-plugins-base-plugins-tcpserversrc.description"></a><h2>Description</h2>
70 <div class="refsect2">
71 <a name="idp12360272"></a><h3>Example launch line</h3>
72 <div class="informalexample">
73 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
76 <td class="listing_lines" align="right"><pre>1
80 <td class="listing_code"><pre class="programlisting"><span class="gtkdoc ppc"># server:</span>
81 gst<span class="gtkdoc opt">-</span>launch tcpserversrc protocol<span class="gtkdoc opt">=</span>none port<span class="gtkdoc opt">=</span><span class="number">3000</span> <span class="gtkdoc opt">!</span> fdsink fd<span class="gtkdoc opt">=</span><span class="number">2</span>
82 <span class="gtkdoc ppc"># client:</span>
83 gst<span class="gtkdoc opt">-</span>launch fdsrc fd<span class="gtkdoc opt">=</span><span class="number">1</span> <span class="gtkdoc opt">!</span> tcpclientsink protocol<span class="gtkdoc opt">=</span>none port<span class="gtkdoc opt">=</span><span class="number">3000</span></pre></td>
92 <div class="refsynopsisdiv">
94 <div class="refsect2">
95 <a name="idp12363072"></a><h3>Element Information</h3>
96 <div class="variablelist"><table border="0">
97 <col align="left" valign="top">
100 <td><p><span class="term">plugin</span></p></td>
102 <a class="link" href="gst-plugins-base-plugins-plugin-tcp.html#plugin-tcp">tcp</a>
106 <td><p><span class="term">author</span></p></td>
107 <td>Thomas Vander Stichele <thomas at apestaart dot org></td>
110 <td><p><span class="term">class</span></p></td>
111 <td>Source/Network</td>
117 <div class="refsect2">
118 <a name="idp12370480"></a><h3>Element Pads</h3>
119 <div class="variablelist"><table border="0">
120 <col align="left" valign="top">
123 <td><p><span class="term">name</span></p></td>
127 <td><p><span class="term">direction</span></p></td>
131 <td><p><span class="term">presence</span></p></td>
135 <td><p><span class="term">details</span></p></td>
145 <div class="refsect1">
146 <a name="gst-plugins-base-plugins-tcpserversrc.details"></a><h2>Details</h2>
147 <div class="refsect2">
148 <a name="GstTCPServerSrc-struct"></a><h3>struct GstTCPServerSrc</h3>
149 <pre class="programlisting">struct GstTCPServerSrc;</pre>
154 <div class="refsect1">
155 <a name="gst-plugins-base-plugins-tcpserversrc.property-details"></a><h2>Property Details</h2>
156 <div class="refsect2">
157 <a name="GstTCPServerSrc--host"></a><h3>The <code class="literal">"host"</code> property</h3>
158 <pre class="programlisting"> "host" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre>
159 <p>The hostname to listen as.</p>
160 <p>Default value: NULL</p>
163 <div class="refsect2">
164 <a name="GstTCPServerSrc--port"></a><h3>The <code class="literal">"port"</code> property</h3>
165 <pre class="programlisting"> "port" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
166 <p>The port to listen to.</p>
167 <p>Allowed values: [0,65535]</p>
168 <p>Default value: 4953</p>
171 <div class="refsect2">
172 <a name="GstTCPServerSrc--protocol"></a><h3>The <code class="literal">"protocol"</code> property</h3>
173 <pre class="programlisting"> "protocol" <a class="link" href="gst-plugins-base-plugins-multifdsink.html#GstTCPProtocol" title="enum GstTCPProtocol"><span class="type">GstTCPProtocol</span></a> : Read / Write</pre>
174 <p>The protocol to wrap data in.</p>
175 <p>Default value: GST_TCP_PROTOCOL_NONE</p>
178 <div class="refsect1">
179 <a name="gst-plugins-base-plugins-tcpserversrc.see-also"></a><h2>See Also</h2>
180 <span class="type">tcpserversink</span>
185 Generated by GTK-Doc V1.18</div>