Librasta & Libsci
A C implementation of the RaSTA protocol stack
Data Structures | Typedefs
notification.h File Reference
#include <stddef.h>
Include dependency graph for notification.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rasta_notification_result
 
struct  rasta_notification_ptr
 
struct  rasta_disconnect_notification_result
 
struct  rasta_redundancy_notifications
 

Typedefs

typedef void(* on_receive_ptr) (struct rasta_notification_result *result)
 
typedef void(* on_connection_state_change_ptr) (struct rasta_notification_result *result)
 
typedef void(* on_diagnostic_notification_ptr) (struct rasta_notification_result *result)
 
typedef void(* on_disconnection_request_received_ptr) (struct rasta_notification_result *result, unsigned short reason, unsigned short detail)
 
typedef void(* on_handshake_complete_ptr) (struct rasta_notification_result *)
 
typedef void(* on_heartbeat_timeout_ptr) (struct rasta_notification_result *)
 
typedef struct redundancy_mux redundancy_mux
 
typedef void(* on_new_connection_ptr) (redundancy_mux *, unsigned long)
 
typedef void(* on_diagnostics_available_red_ptr) (redundancy_mux *, int, int, unsigned long, unsigned long, unsigned long)
 

Typedef Documentation

◆ on_connection_state_change_ptr

typedef void(* on_connection_state_change_ptr) (struct rasta_notification_result *result)

pointer to a function that will be called when connection state has changed first parameter is the connection that fired the event

◆ on_diagnostic_notification_ptr

typedef void(* on_diagnostic_notification_ptr) (struct rasta_notification_result *result)

pointer to a function that will be called when diagnostic notification will be send first parameter is the connection that fired the event second parameter is the length for the provided array third parameter it the array with tracked diagnostic data

◆ on_diagnostics_available_red_ptr

typedef void(* on_diagnostics_available_red_ptr) (redundancy_mux *, int, int, unsigned long, unsigned long, unsigned long)

pointer to a function that will be called in a separate thread when diagnostic data is available first parameter is the redundancy multiplexer that fired the event 2nd parameter is N_Diagnose 3rd parameter is N_missed 4th parameter is T_drift 5th parameter is T_drift2 6th parameter is id of redundancy channel where the notification originates

◆ on_disconnection_request_received_ptr

typedef void(* on_disconnection_request_received_ptr) (struct rasta_notification_result *result, unsigned short reason, unsigned short detail)

pointer to a function that will be called when a DiscReq are received first parameter is the connection that fired the event. second parameter is the reason for this DiscReq third parameter is the detail for this DiscReq

◆ on_handshake_complete_ptr

typedef void(* on_handshake_complete_ptr) (struct rasta_notification_result *)

pointer to a function that will be called when an entity successfully completed the handshake and is now in state UP. first parameter is the connection that fired the event

◆ on_heartbeat_timeout_ptr

typedef void(* on_heartbeat_timeout_ptr) (struct rasta_notification_result *)

pointer to a function that will be called when the T_i timer of an entity expired. first parameter is the connection that fired the event

◆ on_new_connection_ptr

typedef void(* on_new_connection_ptr) (redundancy_mux *, unsigned long)

pointer to a function that will be called in a separate thread when a new entity has sent data to this entity first parameter is the redundancy multiplexer that fired the event 2nd parameter is id of the new redundancy channel / entity

◆ on_receive_ptr

typedef void(* on_receive_ptr) (struct rasta_notification_result *result)

pointer to a function that will be called when application messages are ready for processing first parameter is the connection that fired the event

◆ redundancy_mux