OpenOCD
service Struct Reference
Collaboration diagram for service:

Public Member Functions

 COMMAND_HELPER ((*service_info), const struct service *service)
 

Data Fields

int(* connection_closed )(struct connection *connection)
 
struct connectionconnections
 
int fd
 
int(* input )(struct connection *connection)
 
void(* keep_client_alive )(struct connection *connection)
 
int max_connections
 
char * name
 
int(* new_connection )(struct connection *connection)
 
int(* new_connection_during_keep_alive )(struct connection *connection)
 
struct servicenext
 
char * port
 The 'port', which can be an integer for TCP, or 'disabled', 'pipe' (stdin/out) or a FIFO path. More...
 
unsigned short portnumber
 If port is an integer it is parsed and saved here. More...
 
void * priv
 
void(* service_dtor )(struct service *service)
 
struct sockaddr_in sin
 
enum connection_type type
 

Detailed Description

Definition at line 70 of file server.h.

Member Function Documentation

◆ COMMAND_HELPER()

service::COMMAND_HELPER ( service_info,
const struct service service 
)

Field Documentation

◆ connection_closed

int(* service::connection_closed) (struct connection *connection)

Definition at line 89 of file server.h.

Referenced by add_service(), and remove_connection().

◆ connections

struct connection* service::connections

◆ fd

int service::fd

◆ input

int(* service::input) (struct connection *connection)

Definition at line 86 of file server.h.

Referenced by add_service(), and server_loop().

◆ keep_client_alive

void(* service::keep_client_alive) (struct connection *connection)

Definition at line 90 of file server.h.

Referenced by add_service().

◆ max_connections

int service::max_connections

Definition at line 82 of file server.h.

Referenced by add_connection(), add_service(), remove_connection(), and server_loop().

◆ name

◆ new_connection

int(* service::new_connection) (struct connection *connection)

Definition at line 85 of file server.h.

Referenced by add_connection(), and add_service().

◆ new_connection_during_keep_alive

int(* service::new_connection_during_keep_alive) (struct connection *connection)

Definition at line 84 of file server.h.

Referenced by add_service().

◆ next

◆ port

char* service::port

The 'port', which can be an integer for TCP, or 'disabled', 'pipe' (stdin/out) or a FIFO path.

Definition at line 77 of file server.h.

Referenced by add_connection(), add_service(), free_service(), gdb_input_inner(), ipdbg_stop_service(), and remove_service().

◆ portnumber

unsigned short service::portnumber

If port is an integer it is parsed and saved here.

Definition at line 79 of file server.h.

Referenced by add_service().

◆ priv

◆ service_dtor

void(* service::service_dtor) (struct service *service)

Definition at line 87 of file server.h.

Referenced by add_service(), and free_service().

◆ sin

struct sockaddr_in service::sin

Definition at line 80 of file server.h.

Referenced by add_connection(), add_service(), and server_loop().

◆ type


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