...
This commit is contained in:
parent
88136238c3
commit
3bbe2894a2
1 changed files with 4 additions and 4 deletions
|
@ -156,7 +156,7 @@ void srv_on_conn(ServerEventArgs* e)
|
|||
int tmp1,tmp2;
|
||||
char buff[32];
|
||||
|
||||
kprintf("someone finally connected\n");
|
||||
SHELLDEBUGPRINTF("someone finally connected\n");
|
||||
|
||||
tmp1 = get_clock_tick();
|
||||
for (i = 0; i < 1024*4*4*4; i++)
|
||||
|
@ -167,7 +167,7 @@ void srv_on_conn(ServerEventArgs* e)
|
|||
if ( err < 0)
|
||||
SHELLDEBUGPRINTF("err: %d", err);
|
||||
|
||||
if (!(i%100))
|
||||
if (!(i%1))
|
||||
SHELLDEBUGPRINTF("\r-%d-",i);
|
||||
|
||||
// Sleep(10);
|
||||
|
@ -189,7 +189,7 @@ void* server_task(void* e)
|
|||
srv._OnDisconnect = srv_on_disc;
|
||||
srv._OnConnect = srv_on_conn;
|
||||
|
||||
SHELLDEBUGPRINTF("Server is ready...");
|
||||
SHELLDEBUGPRINTF("Server is ready...\n");
|
||||
|
||||
while(1)
|
||||
sleep(2);
|
||||
|
@ -319,7 +319,7 @@ void* client_task(void* e)
|
|||
cli._OnDisconnect = cli_on_disc;
|
||||
sleep(5);
|
||||
|
||||
SHELLDEBUGPRINTF("Client is ready...");
|
||||
SHELLDEBUGPRINTF("Client is ready...\n");
|
||||
|
||||
while (
|
||||
cli_ConnectTo(&cli,"192.168.0.1",5555,0));
|
||||
|
|
Loading…
Add table
Reference in a new issue