![]() |
![]() |
![]() |
EventDance - Documentation and Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
EvdConnection; EvdConnectionClass; EvdConnectionPrivate; 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_async (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
); void evd_connection_lock_close (EvdConnection *self
); void evd_connection_unlock_close (EvdConnection *self
); void evd_connection_flush_and_shutdown (EvdConnection *self
,GCancellable *cancellable
);
"group" EvdIoStreamGroup* : Read / Write "input-throttle" EvdStreamThrottle* : Read "output-throttle" EvdStreamThrottle* : Read "socket" EvdSocket* : Read / Write "tls" EvdTlsSession* : Read "tls-active" gboolean : Read
typedef struct { GIOStreamClass 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); } EvdConnectionClass;
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_async (EvdConnection *self
,EvdTlsMode mode
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
|
|
|
|
|
|
|
|
|
gboolean evd_connection_starttls_finish (EvdConnection *self
,GAsyncResult *result
,GError **error
);
|
|
|
|
|
|
Returns : |
gboolean evd_connection_get_tls_active (EvdConnection *self
);
|
|
Returns : |
gsize evd_connection_get_max_readable (EvdConnection *self
);
|
|
Returns : |
gsize evd_connection_get_max_writable (EvdConnection *self
);
|
|
Returns : |
gboolean evd_connection_is_connected (EvdConnection *self
);
|
|
Returns : |
gint evd_connection_get_priority (EvdConnection *self
);
|
|
Returns : |
gboolean evd_connection_set_group (EvdConnection *self
,EvdIoStreamGroup *group
);
|
|
|
|
Returns : |
void evd_connection_flush_and_shutdown (EvdConnection *self
,GCancellable *cancellable
);
|
|
|
"input-throttle"
property"input-throttle" EvdStreamThrottle* : Read
The connection's input throttle object.
"output-throttle"
property"output-throttle" EvdStreamThrottle* : Read
The connection's output throttle object.
"close"
signalvoid user_function (EvdConnection *evdconnection, gpointer user_data) : Run Last / 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) : Run Last / 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) : Run Last / Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |