...
This commit is contained in:
parent
ce95bd3b7c
commit
c68844575c
1 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue