/* * Copyright (C) 2019 HAW Hamburg * * 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. */ /** * @ingroup examples * @{ * * @file * @brief Example application for DTLS sock * * @author Aiman Ismail */ #include #include "shell.h" extern int dtls_client_cmd(int argc, char **argv); extern int dtls_server_cmd(int argc, char **argv); static const shell_command_t shell_commands[] = { { "dtlsc", "Start a DTLS client", dtls_client_cmd }, { "dtlss", "Start and stop a DTLS server", dtls_server_cmd }, { NULL, NULL, NULL } }; int main(void) { puts("DTLS sock example application"); /* start shell */ puts("All up, running the shell now"); char line_buf[SHELL_DEFAULT_BUFSIZE]; shell_run(shell_commands, line_buf, SHELL_DEFAULT_BUFSIZE); /* should never be reached */ return 0; }