Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucsd!ames!haven!adm!news From: TAYBENGH%NUSDISCS.BITNET@cunyvm.cuny.edu Newsgroups: comp.unix.wizards Subject: HELP! BSD select() on socket (WIN/TCP for VMS) Message-ID: <22789@adm.BRL.MIL> Date: 19 Mar 90 07:51:20 GMT Sender: news@adm.BRL.MIL Lines: 29 Recently I have a problem of using the select() system call in WIN/TCP for VMS Release 3.2. According to the manuals provided by Wollongong, the select() takes in NULL pointer for writefds/exceptfds, but I always encounter access violation run-time error when I tried to call select(n, readfds, 0, 0, &timeout); Moreover, select() supposed to block or return depend on the timeval (timeout) passed in, but it always return immediately no matter what timeout value I gives without setting any fle descriptors (channels). For example, timeout.tv_sec = 10000; FD_ZERO(&ready); FD_ZERO(&write); FD_ZERO(&except); FD_SET(sock, &ready); FD_SET(sock, &write); FD_SET(sock, &except); /* * Null pointer is not working, giving acess violation problems! */ if (nfd = (select(sock+1, &ready, &write, &except, &timeout)) <0) perror("select"); Anybody out there knows the solution, please help... Thanks. -Beng Hang (taybengh@nusdiscs.bitnet)