This commit is contained in:
Carl-Benedikt Krüger 2011-08-02 17:33:44 +02:00
parent ce95bd3b7c
commit c68844575c

View file

@ -310,7 +310,7 @@ void cli_on_disc(ClientEventArgs*e )
void* client_task(void* e)
{
int err = 0;
Client cli;
char netbuffer[256];
kprintf("created client");
@ -319,16 +319,16 @@ void* client_task(void* e)
cli._OnDisconnect = cli_on_disc;
sleep(5);
shelldebugprint("Client is ready...\n");
SHELLDEBUGPRINTF("Client is ready...\n");
while (cli_ConnectTo(&cli,"192.168.0.1",5555,0))
{
shelldebugprint("retry connect\n");
SHELLDEBUGPRINTF("retry connect\n");
}
shelldebugprint("connected\n");
SHELLDEBUGPRINTF("connected\n");
sleep(1);
cli_sendBuffer(&cli,"Hallo Welt",sizeof("Hallo Welt"));
shelldebugprint("send message\n");
err = cli_sendBuffer(&cli,"Hallo Welt",sizeof("Hallo Welt"));
SHELLDEBUGPRINTF("send message err = %d\n",err);
while(1)
sleep(2);