Using poll() on a UDP stream in TLI
Jason W May
bunyip at world.std.com
Sat Dec 15 06:37:32 AEST 1990
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 at world.std.com)
More information about the Comp.unix.questions
mailing list