shell test
This commit is contained in:
parent
6fbe273b32
commit
d986385207
2 changed files with 4 additions and 0 deletions
|
@ -35,6 +35,7 @@ void shell_init(int srv_or_cli)
|
|||
{
|
||||
if (!srv_or_cli)
|
||||
{
|
||||
kprintf("server init");
|
||||
server_init(&srv,5555,49);
|
||||
srv._OnConnect = shell_on_connect;
|
||||
srv._OnDisconnect = shell_on_disconnect;
|
||||
|
@ -42,6 +43,8 @@ void shell_init(int srv_or_cli)
|
|||
}
|
||||
else
|
||||
{
|
||||
sleep(3);
|
||||
kprintf("client init");
|
||||
cli_init(&cli);
|
||||
while (cli_ConnectTo(&cli,"192.168.0.1",5555,0));
|
||||
sleep(1);
|
||||
|
|
|
@ -99,6 +99,7 @@
|
|||
#define NETIF_DEBUG LWIP_DBG_OFF
|
||||
#define TIMERS_DEBUG LWIP_DBG_OFF
|
||||
|
||||
#define IP_FORWARD 1
|
||||
|
||||
#if 0
|
||||
#define LWIP_TCPIP_CORE_LOCKING_INPUT 1
|
||||
|
|
Loading…
Add table
Reference in a new issue