*** empty log message ***
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
/* needed to define ftime(), accept() and gethostbyaddr() correctly when using flag -std1 */
|
||||
#ifndef _XOPEN_SOURCE_EXTENDED
|
||||
#define _XOPEN_SOURCE_EXTENDED
|
||||
#endif
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <sys/timeb.h>
|
||||
#include <assert.h>
|
||||
@@ -32,7 +37,7 @@ int CocInitServer(int bufsize, int port) {
|
||||
ERR_I(CocCreateSockAdr(&sadr, NULL, port));
|
||||
ERR_SI(bind(mainFd, (struct sockaddr *)&sadr, sizeof(sadr)));
|
||||
logfileOut("created server on port %d\n", port);
|
||||
ERR_SI(listen(mainFd, SOMAXCONN));
|
||||
ERR_SI(listen(mainFd, 8));
|
||||
FD_ZERO(&mask);
|
||||
FD_SET(mainFd, &mask);
|
||||
maxfd=mainFd+1;
|
||||
|
||||
Reference in New Issue
Block a user