ext/eventmachine.h in eventmachine-eventmachine-0.12.5 vs ext/eventmachine.h in eventmachine-eventmachine-0.12.6
- old
+ new
@@ -30,11 +30,12 @@
EM_CONNECTION_UNBOUND = 102,
EM_CONNECTION_ACCEPTED = 103,
EM_CONNECTION_COMPLETED = 104,
EM_LOOPBREAK_SIGNAL = 105,
EM_CONNECTION_NOTIFY_READABLE = 106,
- EM_CONNECTION_NOTIFY_WRITABLE = 107
+ EM_CONNECTION_NOTIFY_WRITABLE = 107,
+ EM_SSL_HANDSHAKE_COMPLETED = 108
};
void evma_initialize_library (void(*)(const char*, int, const char*, int));
void evma_run_machine();
@@ -51,14 +52,20 @@
const char *evma_create_unix_domain_server (const char *filename);
const char *evma_open_datagram_socket (const char *server, int port);
const char *evma_open_keyboard();
void evma_set_tls_parms (const char *binding, const char *privatekey_filename, const char *certchain_filenane);
void evma_start_tls (const char *binding);
+
+ #ifdef WITH_SSL
+ X509 *evma_get_peer_cert (const char *binding);
+ #endif
+
int evma_get_peername (const char *binding, struct sockaddr*);
int evma_get_sockname (const char *binding, struct sockaddr*);
int evma_get_subprocess_pid (const char *binding, pid_t*);
int evma_get_subprocess_status (const char *binding, int*);
+ int evma_get_connection_count();
int evma_send_data_to_connection (const char *binding, const char *data, int data_length);
int evma_send_datagram (const char *binding, const char *data, int data_length, const char *address, int port);
int evma_get_comm_inactivity_timeout (const char *binding, /*out*/int *value);
int evma_set_comm_inactivity_timeout (const char *binding, /*in,out*/int *value);
int evma_get_outbound_data_size (const char *binding);
@@ -66,9 +73,10 @@
void evma_close_connection (const char *binding, int after_writing);
int evma_report_connection_error_status (const char *binding);
void evma_signal_loopbreak();
void evma_set_timer_quantum (int);
+ int evma_get_max_timer_count();
void evma_set_max_timer_count (int);
void evma_setuid_string (const char *username);
void evma_stop_machine();
const char *evma__write_file (const char *filename);