service_driver is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

service_driver struct

Syntax

struct service_driver {     const char *name;     int (*new_connection_during_keep_alive_handler)(struct connection *connection);     int (*new_connection_handler)(struct connection *connection);     int (*input_handler)(struct connection *connection);     int (*connection_closed_handler)(struct connection *connection);     void (*keep_client_alive_handler)(struct connection *connection); };

Fields

name

the name of the server. Read more...

new_connection_during_keep_alive_handler

optional minimal setup to accept a connection during keep-alive. Read more...

new_connection_handler

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. Read more...

input_handler

callback to handle incoming data. Read more...

connection_closed_handler

callback to tear down the connection. Read more...

keep_client_alive_handler

called periodically to send keep-alive messages on the connection. Read more...

References

LocationReferrerScopeText
server.h:47
struct service_driver {
arm_tpiu_swo.c:591arm_tpiu_swo_service_driver
static const struct service_driver arm_tpiu_swo_service_driver = {
gdb_server.c:3873gdb_service_driver
static const struct service_driver gdb_service_driver = {
ipdbg.c:741ipdbg_service_driver
static const struct service_driver ipdbg_service_driver = {
jsp_server.c:187jsp_service_driver
static const struct service_driver jsp_service_driver = {
rtt_server.c:110rtt_service_driver
static const struct service_driver rtt_service_driver = {
semihosting_common.c:1822semihosting_service_driver
static const struct service_driver semihosting_service_driver = {
server.c:198add_service()::driveradd_service()
int add_service(const struct service_driver *driver, const char *port,
server.h:85add_service()::driveradd_service()
int add_service(const struct service_driver *driver, const char *port,
tcl_server.c:268tcl_service_driver
static const struct service_driver tcl_service_driver = {
telnet_server.c:933telnet_service_driver
static const struct service_driver telnet_service_driver = {