i'm working on a piece of code that selects between 2 sockets, one irda,
one inet.
sockIrDA = ...
sockInet = ...
sockMax = max( sockIrDA, sockInet ) + 1;
FD_ZERO( &fds );
FD_SET( sockIrDA, &fds );
FD_SET( sockInet, &fds );
select( sockMax, &fds, ... );
something like that. however, select always returns immediately and
always returns, reporting that the IrDA socket has data available to be
read:
FD_ISSET( sockIrDA, &fds ) == 1
anyway, i've been struggling to track down the cause for this - since
there just isn't any data available on the socket after it's been
accepted, but i don't really know how select ties into the irda kernel
module.
any help would be greatly appreciated... oh. i'm using 2.4.3 with irtty
and an esi dongle if that helps :)
thanks in advance,
----------------
Andrew Sutton
[EMAIL PROTECTED]
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda