![]() |
![]() |
![]() |
EventDance - Documentation and Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
struct EvdService; struct EvdServiceClass; enum EvdServiceValidate; void evd_service_add_listener (EvdService *self
,EvdSocket *socket
); gboolean evd_service_get_tls_autostart (EvdService *self
); EvdTlsCredentials * evd_service_get_tls_credentials (EvdService *self
); void evd_service_listen (EvdService *self
,const gchar *address
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean evd_service_listen_finish (EvdService *self
,GAsyncResult *result
,GError **error
); EvdService * evd_service_new (void
); gboolean evd_service_remove_listener (EvdService *self
,EvdSocket *socket
); void evd_service_set_io_stream_type (EvdService *self
,GType io_stream_type
); void evd_service_set_tls_autostart (EvdService *self
,gboolean autostart
); void evd_service_set_tls_credentials (EvdService *self
,EvdTlsCredentials *credentials
);
"tls-autostart" gboolean : Read / Write "tls-credentials" EvdTlsCredentials* : Read / Write
struct EvdServiceClass { EvdIoStreamGroupClass parent_class; /* virtual methods */ void (* connection_accepted) (EvdService *self, EvdConnection *conn); void (* connection_closed) (EvdService *self, EvdConnection *conn); /* signal prototypes */ guint (* validate_connection) (EvdService *self, EvdConnection *socket, gpointer user_data); /* 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); };
typedef enum { EVD_SERVICE_VALIDATE_ACCEPT, EVD_SERVICE_VALIDATE_REJECT, EVD_SERVICE_VALIDATE_PENDING } EvdServiceValidate;
EvdTlsCredentials * evd_service_get_tls_credentials (EvdService *self
);
Returns : |
The EvdTlsCredentials object of this session. [transfer none] |
void evd_service_listen (EvdService *self
,const gchar *address
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean evd_service_listen_finish (EvdService *self
,GAsyncResult *result
,GError **error
);
gboolean evd_service_remove_listener (EvdService *self
,EvdSocket *socket
);
void evd_service_set_io_stream_type (EvdService *self
,GType io_stream_type
);
void evd_service_set_tls_autostart (EvdService *self
,gboolean autostart
);
void evd_service_set_tls_credentials (EvdService *self
,EvdTlsCredentials *credentials
);
"tls-autostart"
property"tls-autostart" gboolean : Read / Write
Returns TRUE if TLS upgrade should be performed automatically upon incoming connections.
Default value: FALSE
"tls-credentials"
property"tls-credentials" EvdTlsCredentials* : Read / Write
The TLS credentials that will be passed to the connections of the service.
"validate-connection"
signalguint user_function (EvdService *evdservice,
EvdConnection *arg1,
gpointer user_data) : Action
|
the object which received the signal. |
|
user data set when the signal handler was connected. |