server & client test
This commit is contained in:
parent
5816fafa47
commit
055e7967f3
1 changed files with 3 additions and 2 deletions
|
@ -177,7 +177,7 @@ void* server_task(void* e)
|
|||
|
||||
int i = 0;
|
||||
int tmp1,tmp2;
|
||||
char buff[256];
|
||||
char buff[32];
|
||||
|
||||
Server srv;
|
||||
|
||||
|
@ -186,7 +186,8 @@ void* server_task(void* e)
|
|||
srv._OnRead = srv_on_read;
|
||||
srv._OnDisconnect = srv_on_disc;
|
||||
srv._OnConnect = srv_on_conn;
|
||||
sleep(2);
|
||||
sleep(5);
|
||||
kpritnf("sending...");
|
||||
srv_sendBuffer(&srv,0,"Hello you!",sizeof("Hello you!"));
|
||||
sleep(1);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue