OpenOCD
|
Go to the source code of this file.
Functions | |
COMMAND_HANDLER (handle_jsp_port_command) | |
static int | jsp_connection_closed (struct connection *connection) |
int | jsp_init (struct or1k_jtag *jtag_info, char *banner) |
static int | jsp_input (struct connection *connection) |
static int | jsp_new_connection (struct connection *connection) |
static int | jsp_poll_read (void *priv) |
int | jsp_register_commands (struct command_context *cmd_ctx) |
void | jsp_service_free (void) |
static int | telnet_write (struct connection *connection, const void *data, int len) |
Variables | |
static const struct command_registration | jsp_command_handlers [] |
static char * | jsp_port |
static const struct service_driver | jsp_service_driver |
static const char *const | negotiate |
A skim of the relevant RFCs suggests that if my application simply sent the characters IAC DONT LINEMODE (\377\376\042) as soon as the client connects, the client should be forced into character mode. More... | |
COMMAND_HANDLER | ( | handle_jsp_port_command | ) |
Definition at line 205 of file jsp_server.c.
References CALL_COMMAND_HANDLER, and jsp_port.
|
static |
Definition at line 174 of file jsp_server.c.
References ERROR_OK, jsp_poll_read(), NULL, connection::priv, service::priv, connection::service, and target_unregister_timer_callback().
int jsp_init | ( | struct or1k_jtag * | jtag_info, |
char * | banner | ||
) |
Definition at line 196 of file jsp_server.c.
References add_service(), jsp_service::banner, jsp_port, jsp_service_driver, and jsp_service::jtag_info.
Referenced by or1k_adv_jtag_init().
|
static |
Definition at line 101 of file jsp_server.c.
References buffer, connection_read(), ERROR_OK, ERROR_SERVER_REMOTE_CLOSED, jsp_service::jtag_info, LOG_ERROR, or1k_adv_jtag_jsp_xfer(), connection::priv, service::priv, connection::service, telnet_connection::state, TELNET_BUFFER_SIZE, TELNET_STATE_DATA, TELNET_STATE_DO, TELNET_STATE_DONT, TELNET_STATE_IAC, TELNET_STATE_SB, TELNET_STATE_SE, TELNET_STATE_WILL, TELNET_STATE_WONT, and telnet_write().
|
static |
Definition at line 69 of file jsp_server.c.
References jsp_service::banner, telnet_connection::closed, jsp_service::connection, ERROR_OK, jsp_poll_read(), telnet_connection::line_cursor, telnet_connection::line_size, negotiate, connection::priv, service::priv, connection::service, telnet_connection::state, target_register_timer_callback(), TARGET_TIMER_TYPE_PERIODIC, TELNET_STATE_DATA, and telnet_write().
|
static |
Definition at line 49 of file jsp_server.c.
References jsp_service::connection, ERROR_FAIL, ERROR_OK, jsp_service::jtag_info, or1k_adv_jtag_jsp_xfer(), priv, and telnet_write().
Referenced by jsp_connection_closed(), and jsp_new_connection().
int jsp_register_commands | ( | struct command_context * | cmd_ctx | ) |
Definition at line 222 of file jsp_server.c.
References jsp_command_handlers, jsp_port, NULL, and register_commands().
Referenced by server_register_commands().
void jsp_service_free | ( | void | ) |
|
static |
Definition at line 37 of file jsp_server.c.
References telnet_connection::closed, connection_write(), ERROR_OK, ERROR_SERVER_REMOTE_CLOSED, and connection::priv.
Referenced by jsp_input(), jsp_new_connection(), and jsp_poll_read().
|
static |
Definition at line 205 of file jsp_server.c.
Referenced by jsp_register_commands().
|
static |
Definition at line 20 of file jsp_server.c.
Referenced by COMMAND_HANDLER(), jsp_init(), jsp_register_commands(), and jsp_service_free().
|
static |
Definition at line 174 of file jsp_server.c.
Referenced by jsp_init().
|
static |
A skim of the relevant RFCs suggests that if my application simply sent the characters IAC DONT LINEMODE (\377\376\042) as soon as the client connects, the client should be forced into character mode.
However it doesn't make any difference.
Definition at line 27 of file jsp_server.c.
Referenced by jsp_new_connection().