...
This commit is contained in:
parent
9cb2b8afa5
commit
825f180141
2 changed files with 7 additions and 6 deletions
|
@ -49,6 +49,7 @@ void shell_on_read(ServerEventArgs* e)
|
|||
srv_sendBuffer(&srv,emac_id,e->pBuffer,e->dwLen);
|
||||
|
||||
// else commandos oder so
|
||||
srv_sendBuffer(&srv,emac_id,e->pBuffer,e->dwLen);
|
||||
}
|
||||
|
||||
void shell_init(int srv_or_cli)
|
||||
|
|
|
@ -157,7 +157,7 @@ void srv_on_conn(ServerEventArgs* e)
|
|||
char buff[32];
|
||||
|
||||
kprintf("someone finally connected\n");
|
||||
SHELLDEBUGPRINTF("someone finally connected\n");
|
||||
shelldebugprint("someone finally connected\n");
|
||||
|
||||
tmp1 = get_clock_tick();
|
||||
for (i = 0; i < 1024*4*4*4; i++)
|
||||
|
@ -190,7 +190,7 @@ void* server_task(void* e)
|
|||
srv._OnDisconnect = srv_on_disc;
|
||||
srv._OnConnect = srv_on_conn;
|
||||
|
||||
SHELLDEBUGPRINTF("Server is ready...\n");
|
||||
shelldebugprint("Server is ready...\n");
|
||||
|
||||
while(1)
|
||||
sleep(2);
|
||||
|
@ -320,16 +320,16 @@ void* client_task(void* e)
|
|||
cli._OnDisconnect = cli_on_disc;
|
||||
sleep(5);
|
||||
|
||||
SHELLDEBUGPRINTF("Client is ready...\n");
|
||||
shelldebugprint("Client is ready...\n");
|
||||
|
||||
while (cli_ConnectTo(&cli,"192.168.0.1",5555,0))
|
||||
{
|
||||
SHELLDEBUGPRINTF("retry connect\n");
|
||||
shelldebugprint("retry connect\n");
|
||||
}
|
||||
SHELLDEBUGPRINTF("connected\n");
|
||||
shelldebugprint("connected\n");
|
||||
sleep(1);
|
||||
cli_sendBuffer(&cli,"Hallo Welt",sizeof("Hallo Welt"));
|
||||
|
||||
shelldebugprint("send message\n");
|
||||
while(1)
|
||||
sleep(2);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue