events = FD_READ | FD_WRITE | FD_OOB | FD_CLOSE | FD_ACCEPT;
events = (FD_CONNECT | FD_READ | FD_WRITE | FD_OOB | FD_CLOSE | FD_ACCEPT);
char *do_select(SOCKET skt, int startup){    int msg, events;    if (startup) {	msg = WM_NETEVENT;	events = FD_READ | FD_WRITE | FD_OOB | FD_CLOSE | FD_ACCEPT;    } else {	msg = events = 0;    }    if (!hwnd)	return "do_select(): internal error (hwnd==NULL)";    if (WSAAsyncSelect(skt, hwnd, msg, events) == SOCKET_ERROR) {	switch (WSAGetLastError()) {	  case WSAENETDOWN:	    return "Network is down";	  default:	    return "WSAAsyncSelect(): unknown error";	}    }    return NULL;}