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