ports can go up to 65535. Move common defines to gsttcp.h
Original commit message from CVS: ports can go up to 65535. Move common defines to gsttcp.h
This commit is contained in:
parent
7585e3b9fb
commit
ecbc5c1a2e
@ -1,3 +1,12 @@
|
|||||||
|
2004-11-05 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* gst/tcp/gsttcp.h:
|
||||||
|
* gst/tcp/gsttcpclientsink.c:
|
||||||
|
* gst/tcp/gsttcpclientsrc.c:
|
||||||
|
* gst/tcp/gsttcpserversink.c:
|
||||||
|
* gst/tcp/gsttcpserversrc.c:
|
||||||
|
ports can go up to 65535. Move common defines to gsttcp.h
|
||||||
|
|
||||||
2004-11-05 Wim Taymans <wim@fluendo.com>
|
2004-11-05 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/videotestsrc/videotestsrc.c: (paint_setup_Y41B),
|
* gst/videotestsrc/videotestsrc.c: (paint_setup_Y41B),
|
||||||
|
@ -27,6 +27,10 @@
|
|||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
#include <gst/dataprotocol/dataprotocol.h>
|
#include <gst/dataprotocol/dataprotocol.h>
|
||||||
|
|
||||||
|
#define TCP_HIGHEST_PORT 65535
|
||||||
|
#define TCP_DEFAULT_HOST "localhost"
|
||||||
|
#define TCP_DEFAULT_PORT 4953
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
|
@ -26,9 +26,6 @@
|
|||||||
#include "gsttcp.h"
|
#include "gsttcp.h"
|
||||||
#include "gsttcpclientsink.h"
|
#include "gsttcpclientsink.h"
|
||||||
|
|
||||||
#define TCP_DEFAULT_HOST "localhost"
|
|
||||||
#define TCP_DEFAULT_PORT 4953
|
|
||||||
|
|
||||||
/* elementfactory information */
|
/* elementfactory information */
|
||||||
static GstElementDetails gst_tcpclientsink_details =
|
static GstElementDetails gst_tcpclientsink_details =
|
||||||
GST_ELEMENT_DETAILS ("TCP Client sink",
|
GST_ELEMENT_DETAILS ("TCP Client sink",
|
||||||
@ -128,7 +125,7 @@ gst_tcpclientsink_class_init (GstTCPClientSink * klass)
|
|||||||
TCP_DEFAULT_HOST, G_PARAM_READWRITE));
|
TCP_DEFAULT_HOST, G_PARAM_READWRITE));
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PORT,
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PORT,
|
||||||
g_param_spec_int ("port", "Port", "The port to send the packets to",
|
g_param_spec_int ("port", "Port", "The port to send the packets to",
|
||||||
0, 32768, TCP_DEFAULT_PORT, G_PARAM_READWRITE));
|
0, TCP_HIGHEST_PORT, TCP_DEFAULT_PORT, G_PARAM_READWRITE));
|
||||||
g_object_class_install_property (gobject_class, ARG_PROTOCOL,
|
g_object_class_install_property (gobject_class, ARG_PROTOCOL,
|
||||||
g_param_spec_enum ("protocol", "Protocol", "The protocol to wrap data in",
|
g_param_spec_enum ("protocol", "Protocol", "The protocol to wrap data in",
|
||||||
GST_TYPE_TCP_PROTOCOL_TYPE, GST_TCP_PROTOCOL_TYPE_NONE,
|
GST_TYPE_TCP_PROTOCOL_TYPE, GST_TCP_PROTOCOL_TYPE_NONE,
|
||||||
|
@ -41,8 +41,6 @@
|
|||||||
GST_DEBUG_CATEGORY (tcpclientsrc_debug);
|
GST_DEBUG_CATEGORY (tcpclientsrc_debug);
|
||||||
#define GST_CAT_DEFAULT tcpclientsrc_debug
|
#define GST_CAT_DEFAULT tcpclientsrc_debug
|
||||||
|
|
||||||
#define TCP_DEFAULT_PORT 4953
|
|
||||||
#define TCP_DEFAULT_HOST "localhost"
|
|
||||||
#define MAX_READ_SIZE 4 * 1024
|
#define MAX_READ_SIZE 4 * 1024
|
||||||
|
|
||||||
/* elementfactory information */
|
/* elementfactory information */
|
||||||
@ -138,7 +136,7 @@ gst_tcpclientsrc_class_init (GstTCPClientSrc * klass)
|
|||||||
G_PARAM_READWRITE));
|
G_PARAM_READWRITE));
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PORT,
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PORT,
|
||||||
g_param_spec_int ("port", "Port", "The port to receive packets from", 0,
|
g_param_spec_int ("port", "Port", "The port to receive packets from", 0,
|
||||||
32768, TCP_DEFAULT_PORT, G_PARAM_READWRITE));
|
TCP_HIGHEST_PORT, TCP_DEFAULT_PORT, G_PARAM_READWRITE));
|
||||||
g_object_class_install_property (gobject_class, ARG_PROTOCOL,
|
g_object_class_install_property (gobject_class, ARG_PROTOCOL,
|
||||||
g_param_spec_enum ("protocol", "Protocol", "The protocol to wrap data in",
|
g_param_spec_enum ("protocol", "Protocol", "The protocol to wrap data in",
|
||||||
GST_TYPE_TCP_PROTOCOL_TYPE, GST_TCP_PROTOCOL_TYPE_NONE,
|
GST_TYPE_TCP_PROTOCOL_TYPE, GST_TCP_PROTOCOL_TYPE_NONE,
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
#include <sys/filio.h>
|
#include <sys/filio.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "gsttcp.h"
|
||||||
#include "gsttcpserversink.h"
|
#include "gsttcpserversink.h"
|
||||||
#include "gsttcp-marshal.h"
|
#include "gsttcp-marshal.h"
|
||||||
|
|
||||||
#define TCP_DEFAULT_HOST "127.0.0.1"
|
|
||||||
#define TCP_DEFAULT_PORT 4953
|
|
||||||
#define TCP_BACKLOG 5
|
#define TCP_BACKLOG 5
|
||||||
|
|
||||||
/* elementfactory information */
|
/* elementfactory information */
|
||||||
@ -124,7 +123,7 @@ gst_tcpserversink_class_init (GstTCPServerSink * klass)
|
|||||||
TCP_DEFAULT_HOST, G_PARAM_READWRITE));
|
TCP_DEFAULT_HOST, G_PARAM_READWRITE));
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PORT,
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PORT,
|
||||||
g_param_spec_int ("port", "port", "The port to send the packets to",
|
g_param_spec_int ("port", "port", "The port to send the packets to",
|
||||||
0, 32768, TCP_DEFAULT_PORT, G_PARAM_READWRITE));
|
0, TCP_HIGHEST_PORT, TCP_DEFAULT_PORT, G_PARAM_READWRITE));
|
||||||
|
|
||||||
gobject_class->set_property = gst_tcpserversink_set_property;
|
gobject_class->set_property = gst_tcpserversink_set_property;
|
||||||
gobject_class->get_property = gst_tcpserversink_get_property;
|
gobject_class->get_property = gst_tcpserversink_get_property;
|
||||||
|
@ -36,8 +36,7 @@
|
|||||||
GST_DEBUG_CATEGORY (tcpserversrc_debug);
|
GST_DEBUG_CATEGORY (tcpserversrc_debug);
|
||||||
#define GST_CAT_DEFAULT tcpserversrc_debug
|
#define GST_CAT_DEFAULT tcpserversrc_debug
|
||||||
|
|
||||||
#define TCP_DEFAULT_PORT 4953
|
#define TCP_DEFAULT_LISTEN_HOST NULL /* listen on all interfaces */
|
||||||
#define TCP_DEFAULT_HOST NULL /* listen on all interfaces */
|
|
||||||
#define TCP_BACKLOG 1 /* client connection queue */
|
#define TCP_BACKLOG 1 /* client connection queue */
|
||||||
|
|
||||||
/* elementfactory information */
|
/* elementfactory information */
|
||||||
@ -126,11 +125,11 @@ gst_tcpserversrc_class_init (GstTCPServerSrc * klass)
|
|||||||
parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
|
parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_HOST,
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_HOST,
|
||||||
g_param_spec_string ("host", "Host", "The hostname to listen",
|
g_param_spec_string ("host", "Host", "The hostname to listen as",
|
||||||
TCP_DEFAULT_HOST, G_PARAM_READWRITE));
|
TCP_DEFAULT_LISTEN_HOST, G_PARAM_READWRITE));
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PORT,
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PORT,
|
||||||
g_param_spec_int ("port", "Port", "The port to listen to",
|
g_param_spec_int ("port", "Port", "The port to listen to",
|
||||||
0, 32768, TCP_DEFAULT_PORT, G_PARAM_READWRITE));
|
0, TCP_HIGHEST_PORT, TCP_DEFAULT_PORT, G_PARAM_READWRITE));
|
||||||
g_object_class_install_property (gobject_class, ARG_PROTOCOL,
|
g_object_class_install_property (gobject_class, ARG_PROTOCOL,
|
||||||
g_param_spec_enum ("protocol", "Protocol", "The protocol to wrap data in",
|
g_param_spec_enum ("protocol", "Protocol", "The protocol to wrap data in",
|
||||||
GST_TYPE_TCP_PROTOCOL_TYPE, GST_TCP_PROTOCOL_TYPE_NONE,
|
GST_TYPE_TCP_PROTOCOL_TYPE, GST_TCP_PROTOCOL_TYPE_NONE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user