|
Packit |
971217 |
/* GStreamer
|
|
Packit |
971217 |
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
971217 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
971217 |
* License as published by the Free Software Foundation; either
|
|
Packit |
971217 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
971217 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
971217 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
971217 |
* Library General Public License for more details.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
971217 |
* License along with this library; if not, write to the
|
|
Packit |
971217 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit |
971217 |
* Boston, MA 02110-1301, USA.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#ifdef HAVE_CONFIG_H
|
|
Packit |
971217 |
#include "config.h"
|
|
Packit |
971217 |
#endif
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#include "gstsocketsrc.h"
|
|
Packit |
971217 |
#include "gsttcpclientsrc.h"
|
|
Packit |
971217 |
#include "gsttcpclientsink.h"
|
|
Packit |
971217 |
#include "gsttcpserversrc.h"
|
|
Packit |
971217 |
#include "gsttcpserversink.h"
|
|
Packit |
971217 |
#include "gstmultifdsink.h"
|
|
Packit |
971217 |
#include "gstmultisocketsink.h"
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_DEBUG_CATEGORY (tcp_debug);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
static gboolean
|
|
Packit |
971217 |
plugin_init (GstPlugin * plugin)
|
|
Packit |
971217 |
{
|
|
Packit |
971217 |
if (!gst_element_register (plugin, "socketsrc", GST_RANK_NONE,
|
|
Packit |
971217 |
GST_TYPE_SOCKET_SRC))
|
|
Packit |
971217 |
return FALSE;
|
|
Packit |
971217 |
if (!gst_element_register (plugin, "tcpclientsink", GST_RANK_NONE,
|
|
Packit |
971217 |
GST_TYPE_TCP_CLIENT_SINK))
|
|
Packit |
971217 |
return FALSE;
|
|
Packit |
971217 |
if (!gst_element_register (plugin, "tcpclientsrc", GST_RANK_NONE,
|
|
Packit |
971217 |
GST_TYPE_TCP_CLIENT_SRC))
|
|
Packit |
971217 |
return FALSE;
|
|
Packit |
971217 |
if (!gst_element_register (plugin, "tcpserversink", GST_RANK_NONE,
|
|
Packit |
971217 |
GST_TYPE_TCP_SERVER_SINK))
|
|
Packit |
971217 |
return FALSE;
|
|
Packit |
971217 |
if (!gst_element_register (plugin, "tcpserversrc", GST_RANK_NONE,
|
|
Packit |
971217 |
GST_TYPE_TCP_SERVER_SRC))
|
|
Packit |
971217 |
return FALSE;
|
|
Packit |
971217 |
#ifdef HAVE_SYS_SOCKET_H
|
|
Packit |
971217 |
if (!gst_element_register (plugin, "multifdsink", GST_RANK_NONE,
|
|
Packit |
971217 |
GST_TYPE_MULTI_FD_SINK))
|
|
Packit |
971217 |
return FALSE;
|
|
Packit |
971217 |
#endif
|
|
Packit |
971217 |
if (!gst_element_register (plugin, "multisocketsink", GST_RANK_NONE,
|
|
Packit |
971217 |
GST_TYPE_MULTI_SOCKET_SINK))
|
|
Packit |
971217 |
return FALSE;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_DEBUG_CATEGORY_INIT (tcp_debug, "tcp", 0, "TCP calls");
|
|
Packit |
971217 |
|
|
Packit |
971217 |
return TRUE;
|
|
Packit |
971217 |
}
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
Packit |
971217 |
GST_VERSION_MINOR,
|
|
Packit |
971217 |
tcp,
|
|
Packit |
971217 |
"transfer data over the network via TCP",
|
|
Packit |
971217 |
plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
|