>
>         If select didn't work, I would know about it. I've got an app
> (e-Squirt, see my web page) that select between 2 regular socket, 2
> Ultra socket and an Obex socket without any troubles.
>         Probably you forget the the first parameter is the largest
> value of the fd + 1, not the number of fds. Classical mistake.
>

Hi Jean,

I looked again in the irdaspray.c file and if I put

  /*
   * Disable IrTTP SAR
   *
   */

  mtu = 0;
  if (setsockopt(fd, SOL_IRLMP, IRTTP_MAX_SDU_SIZE, &mtu, sizeof(mtu))) {
    perror("setsockopt");
    return -1;
  }

(after I discover the devices) into my code select() works as I expect it to
work. Don't know why it would not work without. But for me it is now ok.

Thanks

Marcel


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

Reply via email to