Date: Sat, 28 Apr 2001 00:17:41 -0700 From: Lance Uyehara <lance@verniernetworks.com> To: rse@engelschall.com Cc: ports@FreeBSD.org Subject: FreeBSD Port: pth-1.4.0 Message-ID: <4.3.2.7.2.20010427235013.00a9f100@mail>
next in thread | raw e-mail | index | archive | help
Help! I'm using pth_poll() to check if a socket is still valid. I am controlling the client side and the server side in my test, so I know the connection is still open. So I do: struct pollfd myfd; int poll_ret; myfd.fd = sock; myfd.events = POLLIN; myfd.revents = 0; poll_ret = pth_poll(&myfd, 1, 0); I get: poll_ret = 0 myfd.fd = sock myfd.events = POLLIN myfd.revents = 0 I actually get the same results if I use 1 or 0 instead of the passed in socket. What am I doing wrong? Any help is appreciated. Thanks. -Lance To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.3.2.7.2.20010427235013.00a9f100>