1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>EvdConnectionPool</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="EventDance - Documentation and Reference Manual">
<link rel="up" href="ch05.html" title="Core">
<link rel="prev" href="EvdIoStreamGroup.html" title="EvdIoStreamGroup">
<link rel="next" href="EvdService.html" title="EvdService">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="EvdIoStreamGroup.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch05.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">EventDance - Documentation and Reference Manual</th>
<td><a accesskey="n" href="EvdService.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#EvdConnectionPool.synopsis" class="shortcut">Top</a>
|
<a href="#EvdConnectionPool.description" class="shortcut">Description</a>
|
<a href="#EvdConnectionPool.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#EvdConnectionPool.properties" class="shortcut">Properties</a>
</td></tr>
</table>
<div class="refentry">
<a name="EvdConnectionPool"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="EvdConnectionPool.top_of_page"></a>EvdConnectionPool</span></h2>
<p>EvdConnectionPool</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="EvdConnectionPool.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">struct <a class="link" href="EvdConnectionPool.html#EvdConnectionPool-struct" title="struct EvdConnectionPool">EvdConnectionPool</a>;
struct <a class="link" href="EvdConnectionPool.html#EvdConnectionPoolClass" title="struct EvdConnectionPoolClass">EvdConnectionPoolClass</a>;
<span class="returnvalue">void</span> <a class="link" href="EvdConnectionPool.html#evd-connection-pool-get-connection" title="evd_connection_pool_get_connection ()">evd_connection_pool_get_connection</a> (<em class="parameter"><code><a class="link" href="EvdConnectionPool.html" title="EvdConnectionPool"><span class="type">EvdConnectionPool</span></a> *self</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
<a class="link" href="EvdConnection.html" title="EvdConnection"><span class="returnvalue">EvdConnection</span></a> * <a class="link" href="EvdConnectionPool.html#evd-connection-pool-get-connection-finish" title="evd_connection_pool_get_connection_finish ()">evd_connection_pool_get_connection_finish</a>
(<em class="parameter"><code><a class="link" href="EvdConnectionPool.html" title="EvdConnectionPool"><span class="type">EvdConnectionPool</span></a> *self</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="EvdConnectionPool.html#evd-connection-pool-has-free-connections" title="evd_connection_pool_has_free_connections ()">evd_connection_pool_has_free_connections</a>
(<em class="parameter"><code><a class="link" href="EvdConnectionPool.html" title="EvdConnectionPool"><span class="type">EvdConnectionPool</span></a> *self</code></em>);
<a class="link" href="EvdConnectionPool.html" title="EvdConnectionPool"><span class="returnvalue">EvdConnectionPool</span></a> * <a class="link" href="EvdConnectionPool.html#evd-connection-pool-new" title="evd_connection_pool_new ()">evd_connection_pool_new</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *address</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> connection_type</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="EvdConnectionPool.html#evd-connection-pool-recycle" title="evd_connection_pool_recycle ()">evd_connection_pool_recycle</a> (<em class="parameter"><code><a class="link" href="EvdConnectionPool.html" title="EvdConnectionPool"><span class="type">EvdConnectionPool</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="EvdConnection.html" title="EvdConnection"><span class="type">EvdConnection</span></a> *conn</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="EvdConnectionPool.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
+----<a class="link" href="EvdIoStreamGroup.html" title="EvdIoStreamGroup">EvdIoStreamGroup</a>
+----EvdConnectionPool
</pre>
</div>
<div class="refsect1">
<a name="EvdConnectionPool.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="EvdConnectionPool.html#EvdConnectionPool--address" title='The "address" property'>address</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
"<a class="link" href="EvdConnectionPool.html#EvdConnectionPool--connection-type" title='The "connection-type" property'>connection-type</a>" <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a>* : Read / Write / Construct Only
</pre>
</div>
<div class="refsect1">
<a name="EvdConnectionPool.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1">
<a name="EvdConnectionPool.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="EvdConnectionPool-struct"></a><h3>struct EvdConnectionPool</h3>
<pre class="programlisting">struct EvdConnectionPool;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="EvdConnectionPoolClass"></a><h3>struct EvdConnectionPoolClass</h3>
<pre class="programlisting">struct EvdConnectionPoolClass {
EvdIoStreamGroupClass parent_class;
/* padding for future expansion */
void (* _padding_0_) (void);
void (* _padding_1_) (void);
void (* _padding_2_) (void);
void (* _padding_3_) (void);
void (* _padding_4_) (void);
void (* _padding_5_) (void);
void (* _padding_6_) (void);
void (* _padding_7_) (void);
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="evd-connection-pool-get-connection"></a><h3>evd_connection_pool_get_connection ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> evd_connection_pool_get_connection (<em class="parameter"><code><a class="link" href="EvdConnectionPool.html" title="EvdConnectionPool"><span class="type">EvdConnectionPool</span></a> *self</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="evd-connection-pool-get-connection-finish"></a><h3>evd_connection_pool_get_connection_finish ()</h3>
<pre class="programlisting"><a class="link" href="EvdConnection.html" title="EvdConnection"><span class="returnvalue">EvdConnection</span></a> * evd_connection_pool_get_connection_finish
(<em class="parameter"><code><a class="link" href="EvdConnectionPool.html" title="EvdConnectionPool"><span class="type">EvdConnectionPool</span></a> *self</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="evd-connection-pool-has-free-connections"></a><h3>evd_connection_pool_has_free_connections ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> evd_connection_pool_has_free_connections
(<em class="parameter"><code><a class="link" href="EvdConnectionPool.html" title="EvdConnectionPool"><span class="type">EvdConnectionPool</span></a> *self</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="evd-connection-pool-new"></a><h3>evd_connection_pool_new ()</h3>
<pre class="programlisting"><a class="link" href="EvdConnectionPool.html" title="EvdConnectionPool"><span class="returnvalue">EvdConnectionPool</span></a> * evd_connection_pool_new (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *address</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> connection_type</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="evd-connection-pool-recycle"></a><h3>evd_connection_pool_recycle ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> evd_connection_pool_recycle (<em class="parameter"><code><a class="link" href="EvdConnectionPool.html" title="EvdConnectionPool"><span class="type">EvdConnectionPool</span></a> *self</code></em>,
<em class="parameter"><code><a class="link" href="EvdConnection.html" title="EvdConnection"><span class="type">EvdConnection</span></a> *conn</code></em>);</pre>
<p>
</p>
</div>
</div>
<div class="refsect1">
<a name="EvdConnectionPool.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="EvdConnectionPool--address"></a><h3>The <code class="literal">"address"</code> property</h3>
<pre class="programlisting"> "address" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre>
<p>The target socket address to connect to.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="EvdConnectionPool--connection-type"></a><h3>The <code class="literal">"connection-type"</code> property</h3>
<pre class="programlisting"> "connection-type" <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a>* : Read / Write / Construct Only</pre>
<p>The GType of the connections handled by the pool.</p>
<p>Allowed values: EvdConnection</p>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|