OpenOCD
service_driver
is only used within OpenOCD.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
Development Tools
OpenOCD
service_driver
service_driver struct
Syntax
Show:
Summary
Declaration
from
server.h:47
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
Field
Declared as
Description
service_driver::name
const
char
*
the name of the server.
service_driver::new_connection_during_keep_alive_handler
int
(
*
)
(
struct
connection
*
connection
)
optional minimal setup to accept a connection during keep-alive.
service_driver::new_connection_handler
int
(
*
)
(
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.
service_driver::input_handler
int
(
*
)
(
struct
connection
*
connection
)
callback to handle incoming data.
service_driver::connection_closed_handler
int
(
*
)
(
struct
connection
*
connection
)
callback to tear down the connection.
service_driver::keep_client_alive_handler
void
(
*
)
(
struct
connection
*
connection
)
called periodically to send keep-alive messages on the connection.
Examples
References
from
examples
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out