fcntl variable change

pull/1/head
Kaleb Himes 2014-05-29 09:30:33 -06:00
parent 2985af8ccd
commit 1aa4daa6ad
1 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ int Accept()
printf("Awaiting client connection on port %d\n", SERV_PORT);
/* set listenfd non-blocking */
fcntl(res, F_SETFL, O_NONBLOCK);
fcntl(listenfd, F_SETFL, O_NONBLOCK);
clilen = sizeof(cliaddr); /* set clilen to |cliaddr| */
unsigned char b[1500];
@ -207,7 +207,7 @@ void *ThreadControl(void* openSock)
}
/* set listenfd non-blocking */
fcntl(res, F_SETFL, O_NONBLOCK);
fcntl(listenfd, F_SETFL, O_NONBLOCK);
CYASSL* ssl; /* initialize arg */
clilen = sizeof(cliaddr); /* set clilen to |cliaddr| */