Commit 949f979a authored by Philip Withnall's avatar Philip Withnall Committed by Olivier Crête

agent: Add support for GIO-style I/O streams

This adds three new classes:
 • NiceIOStream
 • NiceInputStream
 • NiceOutputStream
which allow wrapping a single stream/component pair in an I/O stream
which can be used with the standard GIO functions.

The streams are constructed as wrappers around a NiceAgent, with changes
to the NiceAgent’s properties affecting all instantiated streams.
Streams are only supported for reliable connections.

If the NiceAgent stream which underlies a NiceInputStream,
NiceOutputStream or NiceIOStream is removed, the I/O stream is marked as
closed.

This is based on work originally done by Youness Alaoui
<youness.alaoui@collabora.co.uk>.
parent 3724af1a
......@@ -61,6 +61,12 @@ libagent_la_SOURCES = \
interfaces.h \
pseudotcp.h \
pseudotcp.c \
iostream.h \
iostream.c \
inputstream.h \
inputstream.c \
outputstream.h \
outputstream.c \
$(BUILT_SOURCES)
libagent_la_LIBADD = \
......@@ -72,7 +78,14 @@ libagent_la_DEPENDENCIES = \
$(top_builddir)/socket/libsocket.la \
$(top_builddir)/stun/libstun.la
pkginclude_HEADERS = agent.h candidate.h debug.h address.h interfaces.h pseudotcp.h
pkginclude_HEADERS = \
agent.h \
candidate.h \
debug.h \
address.h \
interfaces.h \
pseudotcp.h \
$(NULL)
if WINDOWS
libagent_la_LIBADD += -liphlpapi -lws2_32
......
......@@ -57,6 +57,18 @@
* given #NiceAgent). These IDs are guaranteed to be positive (i.e. non-zero)
* for valid streams/components.
*
* Each stream can receive data in one of two ways: using
* nice_agent_attach_recv() or nice_agent_recv() (and the derived
* #NiceInputStream and #NiceIOStream classes accessible using
* nice_agent_build_io_stream()). nice_agent_attach_recv() is non-blocking: it
* takes a user-provided callback function and attaches the stream’s socket to
* the provided #GMainContext, invoking the callback in that context for every
* packet received. nice_agent_recv() instead blocks on receiving a packet, and
* writes it directly into a user-provided buffer. This reduces the number of
* callback invokations and (potentially) buffer copies required to receive
* packets. nice_agent_recv() (or #NiceInputStream) is designed to be used in a
* blocking loop in a separate thread.
*
<example>
<title>Simple example on how to use libnice</title>
<programlisting>
......@@ -675,6 +687,9 @@ nice_agent_restart (
* Attaches the stream's component's sockets to the Glib Mainloop Context in
* order to be notified whenever data becomes available for a component.
*
* This must not be used in combination with nice_agent_recv() (or
* #NiceIOStream or #NiceInputStream) on the same stream/component pair.
*
* Returns: %TRUE on success, %FALSE if the stream or component IDs are invalid.
*/
gboolean
......
/*
* This file is part of the Nice GLib ICE library.
*
* (C) 2010, 2013 Collabora Ltd.
* Contact: Youness Alaoui
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Nice GLib ICE library.
*
* The Initial Developers of the Original Code are Collabora Ltd and Nokia
* Corporation. All Rights Reserved.
*
* Contributors:
* Youness Alaoui, Collabora Ltd.
* Philip Withnall, Collabora Ltd.
*
* Alternatively, the contents of this file may be used under the terms of the
* the GNU Lesser General Public License Version 2.1 (the "LGPL"), in which
* case the provisions of LGPL are applicable instead of those above. If you
* wish to allow use of your version of this file only under the terms of the
* LGPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replace
* them with the notice and other provisions required by the LGPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the LGPL.
*/
/**
* SECTION:nice_input_stream
* @short_description: #GInputStream implementation for libnice
* @see_also: #NiceAgent
* @include: inputstream.h
* @stability: Stable
*
* #NiceInputStream is a #GInputStream wrapper for a single reliable stream and
* component of a #NiceAgent. Given an existing reliable #NiceAgent, plus the
* IDs of an existing stream and component in the agent, it will provide a
* streaming input interface for reading from the given component.
*
* A single #NiceInputStream can only be used with a single agent, stream and
* component triple, and will be closed as soon as that stream is removed from
* the agent (e.g. if nice_agent_remove_stream() is called from another thread).
* If g_input_stream_close() is called on a #NiceInputStream, the input stream
* will be marked as closed, but the underlying #NiceAgent stream will not be
* removed. Use nice_agent_remove_stream() to do that.
*
* Since: 0.1.5
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "inputstream.h"
#include "agent-priv.h"
static void streams_removed_cb (NiceAgent *agent, guint *stream_ids,
gpointer user_data);
G_DEFINE_TYPE (NiceInputStream, nice_input_stream, G_TYPE_INPUT_STREAM);
enum
{
PROP_AGENT = 1,
PROP_STREAM_ID,
PROP_COMPONENT_ID,
};
struct _NiceInputStreamPrivate
{
GWeakRef/*<NiceAgent>*/ agent_ref;
guint stream_id;
guint component_id;
};
static void nice_input_stream_dispose (GObject *object);
static void nice_input_stream_get_property (GObject *object, guint prop_id,
GValue *value, GParamSpec *pspec);
static void nice_input_stream_set_property (GObject *object, guint prop_id,
const GValue *value, GParamSpec *pspec);
static gssize nice_input_stream_read (GInputStream *stream, void *buffer,
gsize count, GCancellable *cancellable, GError **error);
static void
nice_input_stream_class_init (NiceInputStreamClass *klass)
{
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
GInputStreamClass *stream_class = G_INPUT_STREAM_CLASS (klass);
g_type_class_add_private (klass, sizeof (NiceInputStreamPrivate));
gobject_class->set_property = nice_input_stream_set_property;
gobject_class->get_property = nice_input_stream_get_property;
gobject_class->dispose = nice_input_stream_dispose;
stream_class->read_fn = nice_input_stream_read;
/**
* NiceInputStream:agent:
*
* The #NiceAgent to wrap with an input stream. This must be an existing
* reliable agent.
*
* A reference is not held on the #NiceAgent. If the agent is destroyed before
* the #NiceInputStream, %G_IO_ERROR_CLOSED will be returned for all
* subsequent operations on the stream.
*
* Since: 0.1.5
*/
g_object_class_install_property (gobject_class, PROP_AGENT,
g_param_spec_object ("agent",
"NiceAgent",
"The underlying NiceAgent",
NICE_TYPE_AGENT,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* NiceInputStream:stream-id:
*
* ID of the stream to use in the #NiceInputStream:agent.
*
* Since: 0.1.5
*/
g_object_class_install_property (gobject_class, PROP_STREAM_ID,
g_param_spec_uint (
"stream-id",
"Agent’s stream ID",
"The ID of the agent’s stream to wrap.",
0, G_MAXUINT,
0,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* NiceInputStream:component-id:
*
* ID of the component to use in the #NiceInputStream:agent.
*
* Since: 0.1.5
*/
g_object_class_install_property (gobject_class, PROP_COMPONENT_ID,
g_param_spec_uint (
"component-id",
"Agent’s component ID",
"The ID of the agent’s component to wrap.",
0, G_MAXUINT,
0,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}
static void
nice_input_stream_dispose (GObject *object)
{
NiceInputStream *self = NICE_INPUT_STREAM (object);
NiceAgent *agent;
agent = g_weak_ref_get (&self->priv->agent_ref);
if (agent != NULL) {
g_signal_handlers_disconnect_by_func (agent, streams_removed_cb, self);
g_object_unref (agent);
}
g_weak_ref_clear (&self->priv->agent_ref);
G_OBJECT_CLASS (nice_input_stream_parent_class)->dispose (object);
}
static void
nice_input_stream_get_property (GObject *object, guint prop_id,
GValue *value, GParamSpec *pspec)
{
NiceInputStream *self = NICE_INPUT_STREAM (object);
switch (prop_id) {
case PROP_AGENT:
g_value_take_object (value, g_weak_ref_get (&self->priv->agent_ref));
break;
case PROP_STREAM_ID:
g_value_set_uint (value, self->priv->stream_id);
break;
case PROP_COMPONENT_ID:
g_value_set_uint (value, self->priv->component_id);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
}
}
static void
nice_input_stream_set_property (GObject *object, guint prop_id,
const GValue *value, GParamSpec *pspec)
{
NiceInputStream *self = NICE_INPUT_STREAM (object);
switch (prop_id) {
case PROP_AGENT: {
/* Construct only. */
NiceAgent *agent = g_value_dup_object (value);
g_weak_ref_set (&self->priv->agent_ref, agent);
/* agent may be NULL if the stream is being constructed by
* nice_io_stream_get_input_stream() after the NiceIOStream’s agent has
* already been finalised. */
if (agent != NULL) {
g_signal_connect (agent, "streams-removed",
(GCallback) streams_removed_cb, self);
g_object_unref (agent);
}
break;
}
case PROP_STREAM_ID:
/* Construct only. */
self->priv->stream_id = g_value_get_uint (value);
break;
case PROP_COMPONENT_ID:
/* Construct only. */
self->priv->component_id = g_value_get_uint (value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
}
}
static void
nice_input_stream_init (NiceInputStream *stream)
{
stream->priv = G_TYPE_INSTANCE_GET_PRIVATE (stream, NICE_TYPE_INPUT_STREAM,
NiceInputStreamPrivate);
g_weak_ref_init (&stream->priv->agent_ref, NULL);
}
/**
* nice_input_stream_new:
* @agent: A #NiceAgent
* @stream_id: The ID of the agent’s stream to wrap
* @component_id: The ID of the agent’s component to wrap
*
* Create a new #NiceInputStream wrapping the given stream/component from
* @agent, which must be a reliable #NiceAgent.
*
* The constructed #NiceInputStream will not hold a reference to @agent. If
* @agent is destroyed before the input stream, %G_IO_ERROR_CLOSED will be
* returned for all subsequent operations on the stream.
*
* Returns: The new #NiceInputStream object
*
* Since: 0.1.5
*/
NiceInputStream *
nice_input_stream_new (NiceAgent *agent, guint stream_id, guint component_id)
{
g_return_val_if_fail (NICE_IS_AGENT (agent), NULL);
g_return_val_if_fail (stream_id >= 1, NULL);
g_return_val_if_fail (component_id >= 1, NULL);
return g_object_new (NICE_TYPE_INPUT_STREAM,
"agent", agent,
"stream-id", stream_id,
"component-id", component_id,
NULL);
}
static gssize
nice_input_stream_read (GInputStream *stream, void *buffer, gsize count,
GCancellable *cancellable, GError **error)
{
NiceInputStreamPrivate *priv = NICE_INPUT_STREAM (stream)->priv;
NiceAgent *agent; /* owned */
gssize len;
/* Closed streams are not readable. */
if (g_input_stream_is_closed (stream))
return 0;
/* Has the agent disappeared? */
agent = g_weak_ref_get (&priv->agent_ref);
if (agent == NULL) {
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_CLOSED,
"Stream is closed due to the NiceAgent being finalised.");
return -1;
}
len = nice_agent_recv (agent, priv->stream_id, priv->component_id,
buffer, count, cancellable, error);
g_object_unref (agent);
return len;
}
static void
streams_removed_cb (NiceAgent *agent, guint *stream_ids, gpointer user_data)
{
NiceInputStream *self = NICE_INPUT_STREAM (user_data);
guint i;
for (i = 0; stream_ids[i] != 0; i++) {
if (stream_ids[i] == self->priv->stream_id) {
/* The socket has been closed. */
g_input_stream_close (G_INPUT_STREAM (self), NULL, NULL);
break;
}
}
}
/*
* This file is part of the Nice GLib ICE library.
*
* (C) 2010, 2013 Collabora Ltd.
* Contact: Youness Alaoui
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Nice GLib ICE library.
*
* The Initial Developers of the Original Code are Collabora Ltd and Nokia
* Corporation. All Rights Reserved.
*
* Contributors:
* Youness Alaoui, Collabora Ltd.
*
* Alternatively, the contents of this file may be used under the terms of the
* the GNU Lesser General Public License Version 2.1 (the "LGPL"), in which
* case the provisions of LGPL are applicable instead of those above. If you
* wish to allow use of your version of this file only under the terms of the
* LGPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replace
* them with the notice and other provisions required by the LGPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the LGPL.
*/
#ifndef __NICE_INPUT_STREAM_H__
#define __NICE_INPUT_STREAM_H__
#include <glib-object.h>
#include <gio/gio.h>
#include "agent.h"
G_BEGIN_DECLS
/* TYPE MACROS */
#define NICE_TYPE_INPUT_STREAM \
(nice_input_stream_get_type ())
#define NICE_INPUT_STREAM(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj), NICE_TYPE_INPUT_STREAM, \
NiceInputStream))
#define NICE_INPUT_STREAM_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass), NICE_TYPE_INPUT_STREAM, \
NiceInputStreamClass))
#define NICE_IS_INPUT_STREAM(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj), NICE_TYPE_INPUT_STREAM))
#define NICE_IS_INPUT_STREAM_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass), NICE_TYPE_INPUT_STREAM))
#define NICE_INPUT_STREAM_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), NICE_TYPE_INPUT_STREAM, \
NiceInputStreamClass))
typedef struct _NiceInputStreamPrivate NiceInputStreamPrivate;
typedef struct _NiceInputStreamClass NiceInputStreamClass;
typedef struct _NiceInputStream NiceInputStream;
GType nice_input_stream_get_type (void);
struct _NiceInputStreamClass
{
GInputStreamClass parent_class;
};
struct _NiceInputStream
{
GInputStream parent_instance;
NiceInputStreamPrivate *priv;
};
NiceInputStream *nice_input_stream_new (NiceAgent *agent,
guint stream_id, guint component_id);
G_END_DECLS
#endif /* __NICE_INPUT_STREAM_H__ */
This diff is collapsed.
/*
* This file is part of the Nice GLib ICE library.
*
* (C) 2010, 2013 Collabora Ltd.
* Contact: Youness Alaoui
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Nice GLib ICE library.
*
* The Initial Developers of the Original Code are Collabora Ltd and Nokia
* Corporation. All Rights Reserved.
*
* Contributors:
* Youness Alaoui, Collabora Ltd.
*
* Alternatively, the contents of this file may be used under the terms of the
* the GNU Lesser General Public License Version 2.1 (the "LGPL"), in which
* case the provisions of LGPL are applicable instead of those above. If you
* wish to allow use of your version of this file only under the terms of the
* LGPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replace
* them with the notice and other provisions required by the LGPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the LGPL.
*/
#ifndef __NICE_IO_STREAM_H__
#define __NICE_IO_STREAM_H__
#include <glib-object.h>
#include <gio/gio.h>
G_BEGIN_DECLS
/* TYPE MACROS */
/* IO Stream */
#define NICE_TYPE_IO_STREAM \
(nice_io_stream_get_type ())
#define NICE_IO_STREAM(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj), NICE_TYPE_IO_STREAM, \
NiceIOStream))
#define NICE_IO_STREAM_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass), NICE_TYPE_IO_STREAM, \
NiceIOStreamClass))
#define NICE_IS_IO_STREAM(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj), NICE_TYPE_IO_STREAM))
#define NICE_IS_IO_STREAM_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass), NICE_TYPE_IO_STREAM))
#define NICE_IO_STREAM_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), NICE_TYPE_IO_STREAM, \
NiceIOStreamClass))
/* IO Stream */
typedef struct _NiceIOStreamPrivate NiceIOStreamPrivate;
typedef struct _NiceIOStreamClass NiceIOStreamClass;
typedef struct _NiceIOStream NiceIOStream;
#include "agent.h"
#include "inputstream.h"
#include "outputstream.h"
/* IO Stream */
GType nice_io_stream_get_type (void);
struct _NiceIOStreamClass
{
GIOStreamClass parent_class;
};
struct _NiceIOStream
{
GIOStream parent_instance;
NiceIOStreamPrivate *priv;
};
GIOStream *nice_io_stream_new (NiceAgent *agent,
guint stream_id, guint component_id);
G_END_DECLS
#endif /* __NICE_IO_STREAM_H__ */
This diff is collapsed.
/*
* This file is part of the Nice GLib ICE library.
*
* (C) 2010, 2013 Collabora Ltd.
* Contact: Youness Alaoui
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Nice GLib ICE library.
*
* The Initial Developers of the Original Code are Collabora Ltd and Nokia
* Corporation. All Rights Reserved.
*
* Contributors:
* Youness Alaoui, Collabora Ltd.
*
* Alternatively, the contents of this file may be used under the terms of the
* the GNU Lesser General Public License Version 2.1 (the "LGPL"), in which
* case the provisions of LGPL are applicable instead of those above. If you
* wish to allow use of your version of this file only under the terms of the
* LGPL and not to allow others to use your version of this file under the
* MPL, indicate your decision by deleting the provisions above and replace
* them with the notice and other provisions required by the LGPL. If you do
* not delete the provisions above, a recipient may use your version of this
* file under either the MPL or the LGPL.
*/
#ifndef __NICE_OUTPUT_STREAM_H__
#define __NICE_OUTPUT_STREAM_H__
#include <glib-object.h>
#include <gio/gio.h>
#include "agent.h"
G_BEGIN_DECLS
/* TYPE MACROS */
#define NICE_TYPE_OUTPUT_STREAM \
(nice_output_stream_get_type ())
#define NICE_OUTPUT_STREAM(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj), NICE_TYPE_OUTPUT_STREAM, \
NiceOutputStream))
#define NICE_OUTPUT_STREAM_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass), NICE_TYPE_OUTPUT_STREAM, \
NiceOutputStreamClass))
#define NICE_IS_OUTPUT_STREAM(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj), NICE_TYPE_OUTPUT_STREAM))
#define NICE_IS_OUTPUT_STREAM_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass), NICE_TYPE_OUTPUT_STREAM))
#define NICE_OUTPUT_STREAM_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), NICE_TYPE_OUTPUT_STREAM, \
NiceOutputStreamClass))
typedef struct _NiceOutputStreamPrivate NiceOutputStreamPrivate;
typedef struct _NiceOutputStreamClass NiceOutputStreamClass;
typedef struct _NiceOutputStream NiceOutputStream;
GType nice_output_stream_get_type (void);
struct _NiceOutputStreamClass
{
GOutputStreamClass parent_class;
};
struct _NiceOutputStream
{
GOutputStream parent_instance;
NiceOutputStreamPrivate *priv;
};
NiceOutputStream *nice_output_stream_new (NiceAgent *agent,
guint stream_id, guint component_id);
G_END_DECLS
#endif /* __NICE_OUTPUT_STREAM_H__ */
......@@ -47,8 +47,12 @@ HFILE_GLOB=$(DOC_SOURCE_DIR)/agent/agent.h $(DOC_SOURCE_DIR)/agent/address.h \
$(DOC_SOURCE_DIR)/stun/usages/ice.h \
$(DOC_SOURCE_DIR)/stun/usages/timer.h \
$(DOC_SOURCE_DIR)/stun/usages/turn.h \
$(DOC_SOURCE_DIR)/agent/pseudotcp.h \
CFILE_GLOB=$(DOC_SOURCE_DIR)/agent/agent.c $(DOC_SOURCE_DIR)/agent/pseudotcp.c
$(DOC_SOURCE_DIR)/agent/pseudotcp.h \
$(DOC_SOURCE_DIR)/agent/iostream.h
CFILE_GLOB=$(DOC_SOURCE_DIR)/agent/agent.c \
$(DOC_SOURCE_DIR)/agent/pseudotcp.c \
$(DOC_SOURCE_DIR)/agent/iostream.c
# Header files to ignore when scanning.
# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h
......
......@@ -19,7 +19,10 @@
<xi:include href="xml/candidate.xml"/>
</chapter>
<chapter>
<title>Libnice helper functions </title>
<title>Libnice helper objects and functions </title>
<xi:include href="xml/nice_io_stream.xml"/>
<xi:include href="xml/nice_input_stream.xml"/>
<xi:include href="xml/nice_output_stream.xml"/>
<xi:include href="xml/debug.xml"/>
<xi:include href="xml/interfaces.xml"/>
</chapter>
......
......@@ -260,3 +260,57 @@ pseudo_tcp_set_debug_level
pseudo_tcp_socket_get_available_bytes
pseudo_tcp_socket_can_send
</SECTION>
<SECTION>
<FILE>nice_io_stream</FILE>
<TITLE>NiceIOStream</TITLE>
NiceIOStream
nice_io_stream_new
<SUBSECTION Standard>
NICE_IO_STREAM
NICE_IO_STREAM_CLASS
NICE_IO_STREAM_GET_CLASS
NICE_IS_IO_STREAM
NICE_IS_IO_STREAM_CLASS
NICE_TYPE_IO_STREAM
nice_io_stream_get_type
<SUBSECTION Private>
NiceIOStreamClass
NiceIOStreamPrivate
</SECTION>
<SECTION>
<FILE>nice_input_stream</FILE>
<TITLE>NiceInputStream</TITLE>
NiceInputStream
nice_input_stream_new
<SUBSECTION Standard>
NICE_INPUT_STREAM
NICE_INPUT_STREAM_CLASS
NICE_INPUT_STREAM_GET_CLASS
NICE_IS_INPUT_STREAM
NICE_IS_INPUT_STREAM_CLASS
NICE_TYPE_INPUT_STREAM
nice_input_stream_get_type
<SUBSECTION Private>
NiceInputStreamClass
NiceInputStreamPrivate
</SECTION>
<SECTION>
<FILE>nice_output_stream</FILE>
<TITLE>NiceOutputStream</TITLE>
NiceOutputStream
nice_output_stream_new
<SUBSECTION Standard>
NICE_OUTPUT_STREAM
NICE_OUTPUT_STREAM_CLASS
NICE_OUTPUT_STREAM_GET_CLASS
NICE_IS_OUTPUT_STREAM
NICE_IS_OUTPUT_STREAM_CLASS
NICE_TYPE_OUTPUT_STREAM
nice_output_stream_get_type
<SUBSECTION Private>
NiceOutputStreamClass
NiceOutputStreamPrivate
</SECTION>
......@@ -56,6 +56,9 @@ nice_debug_enable
nice_interfaces_get_ip_for_interface
nice_interfaces_get_local_interfaces
nice_interfaces_get_local_ips
nice_io_stream_new
nice_input_stream_new
nice_output_stream_new
pseudo_tcp_set_debug_level
pseudo_tcp_socket_close
pseudo_tcp_socket_connect
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment