| EventDance - Documentation and Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | Signals | ||||
struct EvdConnection; struct EvdConnectionClass; EvdConnection * evd_connection_new (EvdSocket *socket); void evd_connection_set_socket (EvdConnection *self,EvdSocket *socket); EvdSocket * evd_connection_get_socket (EvdConnection *self); EvdTlsSession * evd_connection_get_tls_session (EvdConnection *self); void evd_connection_starttls (EvdConnection *self,EvdTlsMode mode,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean evd_connection_starttls_finish (EvdConnection *self,GAsyncResult *result,GError **error); gboolean evd_connection_get_tls_active (EvdConnection *self); gsize evd_connection_get_max_readable (EvdConnection *self); gsize evd_connection_get_max_writable (EvdConnection *self); gboolean evd_connection_is_connected (EvdConnection *self); gint evd_connection_get_priority (EvdConnection *self); gboolean evd_connection_set_group (EvdConnection *self,EvdIoStreamGroup *group); EvdIoStreamGroup * evd_connection_get_group (EvdConnection *self); void evd_connection_lock_close (EvdConnection *self); void evd_connection_unlock_close (EvdConnection *self); void evd_connection_flush_and_shutdown (EvdConnection *self,GCancellable *cancellable); gchar * evd_connection_get_remote_address_as_string (EvdConnection *self,GError **error);
"group" EvdIoStreamGroup* : Read / Write "socket" EvdSocket* : Read / Write "tls" EvdTlsSession* : Read "tls-active" gboolean : Read
struct EvdConnectionClass {
EvdIoStreamClass parent_class;
/* signal prototypes */
void (* close) (EvdConnection *self);
void (* group_changed) (EvdConnection *self,
EvdIoStreamGroup *new_group,
EvdIoStreamGroup *old_group,
gpointer user_data);
void (* write) (EvdConnection *self);
/* 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);
};
void evd_connection_set_socket (EvdConnection *self,EvdSocket *socket);
EvdSocket * evd_connection_get_socket (EvdConnection *self);
Returns : |
The EvdSocket object. [transfer none] |
EvdTlsSession * evd_connection_get_tls_session (EvdConnection *self);
Returns : |
The EvdTlsSession object. [transfer none] |
void evd_connection_starttls (EvdConnection *self,EvdTlsMode mode,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
|
. [allow-none] |
|
. [allow-none] |
|
. [allow-none] |
gboolean evd_connection_starttls_finish (EvdConnection *self,GAsyncResult *result,GError **error);
gboolean evd_connection_set_group (EvdConnection *self,EvdIoStreamGroup *group);
|
. [allow-none] |
EvdIoStreamGroup * evd_connection_get_group (EvdConnection *self);
Returns : |
. [transfer none] |
void evd_connection_flush_and_shutdown (EvdConnection *self,GCancellable *cancellable);
|
. [allow-none] |
gchar * evd_connection_get_remote_address_as_string (EvdConnection *self,GError **error);
"tls-active" property"tls-active" gboolean : Read
Returns TRUE if connection has SSL/TLS active, FALSE otherwise. SSL/TLS is activated by calling 'starttls' on a connection.
Default value: FALSE
"close" signalvoid user_function (EvdConnection *evdconnection,
gpointer user_data) : Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"group-changed" signalvoid user_function (EvdConnection *evdconnection,
GObject *arg1,
GObject *arg2,
gpointer user_data) : Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"write" signalvoid user_function (EvdConnection *evdconnection,
gpointer user_data) : Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |