shell test

This commit is contained in:
Carl-Benedikt Krüger 2011-07-12 15:07:09 +02:00
parent 6fbe273b32
commit d986385207
2 changed files with 4 additions and 0 deletions

View file

@ -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);

View file

@ -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