| EventDance - Documentation and Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
struct EvdConnectionPool; struct EvdConnectionPoolClass; EvdConnectionPool * evd_connection_pool_new (const gchar *address,GType connection_type); gboolean evd_connection_pool_has_free_connections (EvdConnectionPool *self); void evd_connection_pool_get_connection (EvdConnectionPool *self,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); EvdConnection * evd_connection_pool_get_connection_finish (EvdConnectionPool *self,GAsyncResult *result,GError **error); gboolean evd_connection_pool_recycle (EvdConnectionPool *self,EvdConnection *conn); void evd_connection_pool_set_tls_autostart (EvdConnectionPool *self,gboolean autostart); gboolean evd_connection_pool_get_tls_autostart (EvdConnectionPool *self); void evd_connection_pool_set_tls_credentials (EvdConnectionPool *self,EvdTlsCredentials *credentials); EvdTlsCredentials * evd_connection_pool_get_tls_credentials (EvdConnectionPool *self);
"address" gchar* : Read / Write / Construct Only "connection-type" GType* : Read / Write / Construct Only
struct EvdConnectionPoolClass {
EvdIoStreamGroupClass parent_class;
GType (* get_connection_type) (EvdConnectionPool *self);
/* padding for future expansion */
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);
};
EvdConnectionPool * evd_connection_pool_new (const gchar *address,GType connection_type);
gboolean evd_connection_pool_has_free_connections
(EvdConnectionPool *self);
void evd_connection_pool_get_connection (EvdConnectionPool *self,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
EvdConnection * evd_connection_pool_get_connection_finish (EvdConnectionPool *self,GAsyncResult *result,GError **error);
Returns : |
. [transfer full] |
gboolean evd_connection_pool_recycle (EvdConnectionPool *self,EvdConnection *conn);
void evd_connection_pool_set_tls_autostart (EvdConnectionPool *self,gboolean autostart);
gboolean evd_connection_pool_get_tls_autostart
(EvdConnectionPool *self);
void evd_connection_pool_set_tls_credentials (EvdConnectionPool *self,EvdTlsCredentials *credentials);
EvdTlsCredentials * evd_connection_pool_get_tls_credentials
(EvdConnectionPool *self);
Returns : |
. [transfer none] |
"address" property"address" gchar* : Read / Write / Construct Only
The target socket address to connect to.
Default value: NULL
"connection-type" property"connection-type" GType* : Read / Write / Construct Only
The GType of the connections handled by the pool.
Allowed values: EvdConnection