...
This commit is contained in:
parent
9ced49c303
commit
be6ed47b85
1 changed files with 2 additions and 1 deletions
|
@ -236,9 +236,10 @@ void* client_task(void* e)
|
|||
|
||||
kprintf("connecting");
|
||||
/* connect to PORT on HOST */
|
||||
retry:
|
||||
if (connect(sd,(struct sockaddr *) &pin, sizeof(pin)) == -1) {
|
||||
kprintf("connectfail");
|
||||
return;
|
||||
goto retry;
|
||||
}
|
||||
kprintf("sending");
|
||||
/* send a message to the server PORT on machine HOST */
|
||||
|
|
Loading…
Add table
Reference in a new issue