Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!wuarchive!uunet!world!bunyip From: bunyip@world.std.com (Jason W May) Newsgroups: comp.unix.questions Subject: Using poll() on a UDP stream in TLI Message-ID: <1990Dec14.193732.5121@world.std.com> Date: 14 Dec 90 19:37:32 GMT Sender: bunyip@world.std.com (Jason W May) Organization: The World @ Software Tool & Die Lines: 29 Under TLI, is it possible to poll() on a file descriptor that is associated with a UDP transport provider? e.g., int fd; struct pollfd pollfd; struct t_unitdata *udataptr; fd = t_open ("/dev/udp", O_RDWR, NULL); /* t_bind, t_alloc, etc. */ pollfd.fd = fd; poll (&pollfd, 1, -1); t_rcvudata (fd, udataptr, &flags); When I try this, the poll() never returns. Things work fine if I leave out the poll and the server just waits for a datagram to arrive; but I would like to multiplex and listen on a set of streams where several could be connection-oriented and several connectionless. Thanks, Jason (bunyip@world.std.com)