Librasta & Libsci
A C implementation of the RaSTA protocol stack
notification.h
Go to the documentation of this file.
1 #pragma once
2 
3 #ifdef __cplusplus
4 extern "C" { // only need to export C interface if
5  // used by C++ source code
6 #endif
7 
8 #include <stddef.h>
9 
17  // struct rasta_connection connection;
18  void *nothing;
19 };
20 
25 typedef void (*on_receive_ptr)(struct rasta_notification_result *result);
26 
32 
40 
47 typedef void (*on_disconnection_request_received_ptr)(struct rasta_notification_result *result, unsigned short reason, unsigned short detail);
48 
54 
60 
61 typedef struct redundancy_mux redundancy_mux;
62 struct receive_event_data;
63 struct sockaddr_in;
64 
70 typedef void (*on_new_connection_ptr)(redundancy_mux *, unsigned long);
71 
81 typedef void (*on_diagnostics_available_red_ptr)(redundancy_mux *, int, int, unsigned long, unsigned long,
82  unsigned long);
83 
92 
97 
102 
107 
112 
117 
122 };
123 
126  unsigned short reason;
127  unsigned short detail;
128 };
129 
133 typedef struct
134 {
140 
147 
148 #ifdef __cplusplus
149 }
150 #endif
void(* on_disconnection_request_received_ptr)(struct rasta_notification_result *result, unsigned short reason, unsigned short detail)
Definition: notification.h:47
void(* on_receive_ptr)(struct rasta_notification_result *result)
Definition: notification.h:25
void(* on_new_connection_ptr)(redundancy_mux *, unsigned long)
Definition: notification.h:70
void(* on_heartbeat_timeout_ptr)(struct rasta_notification_result *)
Definition: notification.h:59
void(* on_connection_state_change_ptr)(struct rasta_notification_result *result)
Definition: notification.h:31
void(* on_diagnostic_notification_ptr)(struct rasta_notification_result *result)
Definition: notification.h:39
struct redundancy_mux redundancy_mux
Definition: notification.h:61
void(* on_diagnostics_available_red_ptr)(redundancy_mux *, int, int, unsigned long, unsigned long, unsigned long)
Definition: notification.h:81
void(* on_handshake_complete_ptr)(struct rasta_notification_result *)
Definition: notification.h:53
Definition: notification.h:124
unsigned short reason
Definition: notification.h:126
unsigned short detail
Definition: notification.h:127
struct rasta_notification_result result
Definition: notification.h:125
Definition: notification.h:87
on_heartbeat_timeout_ptr on_heartbeat_timeout
Definition: notification.h:121
on_disconnection_request_received_ptr on_disconnection_request_received
Definition: notification.h:106
on_connection_state_change_ptr on_connection_state_change
Definition: notification.h:96
on_diagnostics_available_red_ptr on_redundancy_diagnostic_notification
Definition: notification.h:111
on_diagnostic_notification_ptr on_diagnostic_notification
Definition: notification.h:101
on_handshake_complete_ptr on_handshake_complete
Definition: notification.h:116
on_receive_ptr on_receive
Definition: notification.h:91
Definition: notification.h:13
void * nothing
Definition: notification.h:18
Definition: notification.h:134
on_diagnostics_available_red_ptr on_diagnostics_available
Definition: notification.h:139
on_new_connection_ptr on_new_connection
Definition: notification.h:145