OpenOCD
service_driver Struct Reference

Data Fields

int(* connection_closed_handler )(struct connection *connection)
 callback to tear down the connection More...
 
int(* input_handler )(struct connection *connection)
 callback to handle incoming data More...
 
void(* keep_client_alive_handler )(struct connection *connection)
 called periodically to send keep-alive messages on the connection More...
 
const char * name
 the name of the server More...
 
int(* new_connection_during_keep_alive_handler )(struct connection *connection)
 optional minimal setup to accept a connection during keep-alive More...
 
int(* new_connection_handler )(struct connection *connection)
 complete code to accept a new connection. More...
 

Detailed Description

Definition at line 47 of file server.h.

Field Documentation

◆ connection_closed_handler

int(* service_driver::connection_closed_handler) (struct connection *connection)

callback to tear down the connection

Definition at line 62 of file server.h.

Referenced by add_service().

◆ input_handler

int(* service_driver::input_handler) (struct connection *connection)

callback to handle incoming data

Definition at line 60 of file server.h.

Referenced by add_service().

◆ keep_client_alive_handler

void(* service_driver::keep_client_alive_handler) (struct connection *connection)

called periodically to send keep-alive messages on the connection

Definition at line 64 of file server.h.

Referenced by add_service().

◆ name

const char* service_driver::name

the name of the server

Definition at line 49 of file server.h.

Referenced by add_service().

◆ new_connection_during_keep_alive_handler

int(* service_driver::new_connection_during_keep_alive_handler) (struct connection *connection)

optional minimal setup to accept a connection during keep-alive

Definition at line 51 of file server.h.

Referenced by add_service().

◆ new_connection_handler

int(* service_driver::new_connection_handler) (struct connection *connection)

complete code to accept a new connection.

If 'new_connection_during_keep_alive_handler' above is present, this can be either called alone during the server_loop, or after the function above. Check the implementation in gdb_server.

Definition at line 58 of file server.h.

Referenced by add_service().


The documentation for this struct was generated from the following file: