Andrew Sutton wrote :
> jean,
> 
> you had mentionned some time ago that the more recent versions of the kernel 
> propogated discovery, expiry events up the stack (although only to some 
> kernel ir modules - irnet and possibly the irsock stuff?)
> 
> is there any documentation of how select() can be used to block for a 
> discovery or expiry event?
> 
> thanks,
> 
> Andrew Sutton

        Trivial :
fd = open("dev/irnet")
select(fd);
buf = read(fd);
if(buf == "Discov")
   ...
if(buf == "Expir")
   ...

        Hope it helps...

        Jean
_______________________________________________
Linux-IrDA mailing list  -  [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda

Reply via email to