forked from RIOT-OS/RIOT
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys/net/application_layer: add telnet_server
- Loading branch information
1 parent
b173313
commit ab97e2d
Showing
4 changed files
with
583 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* Copyright (C) 2019 Thomas Stilwell <[email protected]> | ||
* | ||
* This file is subject to the terms and conditions of the GNU Lesser | ||
* General Public License v2.1. See the file LICENSE in the top level | ||
* directory for more details. | ||
*/ | ||
|
||
/** | ||
* @defgroup net_telnet_server telnet server | ||
* @ingroup net | ||
* | ||
* @brief telnet server | ||
* | ||
* @{ | ||
* | ||
* @file | ||
* @brief telnet server definitions | ||
* | ||
* @author Thomas Stilwell <[email protected]> | ||
*/ | ||
|
||
#ifndef NET_TELNET_SERVER_H | ||
#define NET_TELNET_SERVER_H | ||
|
||
#include <errno.h> | ||
#include <stdint.h> | ||
#include <unistd.h> | ||
|
||
#include "net/gnrc/tcp.h" | ||
#include "shell.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/** | ||
* @brief telnet server struct | ||
*/ | ||
typedef struct { | ||
uint16_t port; | ||
gnrc_tcp_tcb_t tcb; | ||
const shell_command_t *shell_commands; /* deprecated */ | ||
} telnet_server_t; | ||
|
||
int telnet_start_server(telnet_server_t * telnet_server); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* NET_TELNET_SERVER_H */ | ||
/** @} */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
MODULE=telnet_server | ||
include $(RIOTBASE)/Makefile.base |
Oops, something went wrong.