*** empty log message ***

This commit is contained in:
cvs
2000-03-15 15:08:37 +00:00
parent 9e823d7a2f
commit 0a2e39df36
5 changed files with 15 additions and 8 deletions

View File

@@ -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;