shell_server.h
Go to the documentation of this file.
188 ShellServerCommandLineCallback commandLineCallback; ///<Command line processing callback function
241 ShellServerCommandLineCallback commandLineCallback; ///<Command line processing callback function
246 SshChannelEventDesc eventDesc[SHELL_SERVER_MAX_SESSIONS]; ///<The events the application is interested in
char_t escSeq[SHELL_SERVER_MAX_ESC_SEQ_LEN+1]
Multibyte escape sequence.
Definition: shell_server.h:223
error_t shellServerWriteStream(ShellServerSession *session, const void *data, size_t length, size_t *written, uint_t flags)
Write to stdout stream.
Definition: shell_server.c:302
ShellServerCloseCallback closeCallback
Session closing callback function.
Definition: shell_server.h:189
error_t shellServerInit(ShellServerContext *context, const ShellServerSettings *settings)
Initialize shell server context.
Definition: shell_server.c:86
error_t shellServerSetTimeout(ShellServerSession *session, systime_t timeout)
Set timeout for read/write operations.
Definition: shell_server.c:271
void shellServerGetDefaultSettings(ShellServerSettings *settings)
Initialize settings with default values.
Definition: shell_server.c:50
error_t shellServerSaveHistory(ShellServerSession *session, char_t *history, size_t size, size_t *length)
Save command history.
Definition: shell_server.c:365
error_t shellServerRestoreHistory(ShellServerSession *session, const char_t *history, size_t length)
Restore command history.
Definition: shell_server.c:414
error_t shellServerSetBanner(ShellServerSession *session, const char_t *banner)
Set welcome banner.
Definition: shell_server.c:208
ShellServerCommandLineCallback commandLineCallback
Command line processing callback function.
Definition: shell_server.h:188
error_t shellServerSetPrompt(ShellServerSession *session, const char_t *prompt)
Set shell prompt.
Definition: shell_server.c:243
ShellAccessStatus(* ShellServerCheckUserCallback)(ShellServerSession *session, const char_t *user)
User verification callback function.
Definition: shell_server.h:157
error_t(* ShellServerCommandLineCallback)(ShellServerSession *session, char_t *commandLine)
Command line processing callback function.
Definition: shell_server.h:165
ShellServerCheckUserCallback checkUserCallback
User verification callback function.
Definition: shell_server.h:240
SshChannelEventDesc eventDesc[SHELL_SERVER_MAX_SESSIONS]
The events the application is interested in.
Definition: shell_server.h:246
void(* ShellServerCloseCallback)(ShellServerSession *session, const char_t *user)
Session closing callback function.
Definition: shell_server.h:173
error_t shellServerReadStream(ShellServerSession *session, void *data, size_t size, size_t *received, uint_t flags)
Read from stdin stream.
Definition: shell_server.c:334
SSH server.
error_t shellServerStart(ShellServerContext *context)
Start shell server.
Definition: shell_server.c:157
ShellServerCloseCallback closeCallback
Session closing callback function.
Definition: shell_server.h:242
ShellServerCheckUserCallback checkUserCallback
User verification callback function.
Definition: shell_server.h:187
ShellServerCommandLineCallback commandLineCallback
Command line processing callback function.
Definition: shell_server.h:241
error_t shellServerClearHistory(ShellServerSession *session)
Clear command history.
Definition: shell_server.c:469
char_t buffer[SHELL_SERVER_BUFFER_SIZE]
Memory buffer for input/output operations.
Definition: shell_server.h:208