|
@@ -194,23 +194,6 @@ static const int8_t * const pcEndOfCommandOutputString = ( int8_t * ) "\r\n[На
|
|
*/
|
|
*/
|
|
extern SETTINGS_t sSettings;
|
|
extern SETTINGS_t sSettings;
|
|
|
|
|
|
-/*-----------------------------------------------------------------------------------*/
|
|
|
|
-/**
|
|
|
|
- * Close a telnet session.
|
|
|
|
- *
|
|
|
|
- * This function can be called from a telnet command in order to close
|
|
|
|
- * the connection.
|
|
|
|
- *
|
|
|
|
- * \param s The connection which is to be closed.
|
|
|
|
- *
|
|
|
|
- */
|
|
|
|
-/*-----------------------------------------------------------------------------------*/
|
|
|
|
-void
|
|
|
|
-telnetd_close(telnetd_state_t *s)
|
|
|
|
-{
|
|
|
|
- s->state = TELNET_STATE_CLOSE;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
static void sendopt(telnetd_state_t *s, u8_t code, u8_t option)
|
|
static void sendopt(telnetd_state_t *s, u8_t code, u8_t option)
|
|
{
|
|
{
|
|
unsigned char buf[3];
|
|
unsigned char buf[3];
|