20 #ifndef OC_SESSION_EVENTS_H
21 #define OC_SESSION_EVENTS_H
25 #include "util/oc_process.h"
end point implementation, e.g.
OC_PROCESS_NAME(oc_network_events)
process network events
platform abstraction of networking events (mutexes)
void oc_session_end_event(oc_endpoint_t *endpoint)
session end event
void oc_session_start_event(oc_endpoint_t *endpoint)
session start event
void oc_session_events_set_event_delay(int secs)
set delay for events
void(* session_event_handler_t)(const oc_endpoint_t *endpoint, oc_session_state_t state)
Callback function to pass the session event information to the Application.
struct oc_session_event_cb oc_session_event_cb_t
Structure to manage session event handler list.
oc_session_state_t
session states
@ OC_SESSION_DISCONNECTED
session disconnected
@ OC_SESSION_CONNECTED
session connected
Structure to manage session event handler list.