2 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
21 #ifndef __GST_TCPSRC_H__
22 #define __GST_TCPSRC_H__
28 #endif /* __cplusplus */
32 #include <sys/types.h>
34 #include <sys/socket.h>
35 #include <netinet/in.h>
36 #include <arpa/inet.h>
37 #include "gsttcpplugin.h"
41 #define GST_TYPE_TCPSRC \
42 (gst_tcpsrc_get_type())
43 #define GST_TCPSRC(obj) \
44 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TCPSRC,GstTCPSrc))
45 #define GST_TCPSRC_CLASS(klass) \
46 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TCPSRC,GstTCPSrc))
47 #define GST_IS_TCPSRC(obj) \
48 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TCPSRC))
49 #define GST_IS_TCPSRC_CLASS(obj) \
50 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TCPSRC))
52 typedef struct _GstTCPSrc GstTCPSrc;
53 typedef struct _GstTCPSrcClass GstTCPSrcClass;
56 GST_TCPSRC_OPEN = GST_ELEMENT_FLAG_LAST,
67 GstPad *sinkpad,*srcpad;
73 /* gboolean socket_options;*/
74 Gst_TCP_Control control;
76 struct sockaddr_in myaddr;
80 struct _GstTCPSrcClass {
81 GstElementClass parent_class;
84 GType gst_tcpsrc_get_type(void);
89 #endif /* __cplusplus */
92 #endif /* __GST_TCPSRC_H__ */