From b65886cfa53f0373adb9afcbb776de37c7b9f2d5 Mon Sep 17 00:00:00 2001 From: Zeeshan Ali Date: Sat, 16 Nov 2002 19:28:01 +0000 Subject: [PATCH] updated with the latest changes. Original commit message from CVS: updated with the latest changes. --- gst/udp/README | 14 ++++---------- gst/udp/gstudp.h | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 10 deletions(-) create mode 100644 gst/udp/gstudp.h diff --git a/gst/udp/README b/gst/udp/README index e032e74..5191cc6 100644 --- a/gst/udp/README +++ b/gst/udp/README @@ -1,28 +1,22 @@ * What is UDP src/sink? This plugin is *not* meant to be a professional stream broadcast -solution, like icecast or realaudio or whatever. - -This plugin is basically for testing and simple hacks: raw audio -or packetized gsm should be fine. - +solution, like icecast or realaudio or whatever. But the future RTP plugins shall not do the actual transmission/reception of packets on the network themselve but the Application developer would be encouraged to use these plugins for that. * Shortcomings -Even given our modest ambitions, the current code is doesn't handle +Even given our modest ambitions, the current code doesn't handle caps negotiation robustly. - * Todo -This plugin should offer different modes for caps negotiation: none, -udp, or tcp. The udp mode should include the caps every five packets +The udp mode should include the caps every five packets (approx). The tcp mode can do bi-directional negotiation. Perhaps this plugin can be the example of how to do caps negotiation via a point-to-point protocol. - 12 Sep 2001 Wim Taymans Joshua N Pritikin +Zeeshan Ali diff --git a/gst/udp/gstudp.h b/gst/udp/gstudp.h new file mode 100644 index 0000000..b069453 --- /dev/null +++ b/gst/udp/gstudp.h @@ -0,0 +1,35 @@ +/* GStreamer + * Copyright (C) <1999> Erik Walthinsen + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + + +#ifndef __GST_UDP_H__ +#define __GST_UDP_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +typedef enum { + CONTROL_ZERO, + CONTROL_NONE, + CONTROL_UDP, + CONTROL_TCP +} Gst_UDP_Control; + +#endif -- 2.7.4