On Sat, Dec 09, 2000 at 02:15:06PM +0100, Marcel Holtmann wrote:
> >
> > 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
Are you doing a select on the client or server side ? I've
never used select on the client side, and I don't know if it make
sense.
On the server side, my code doesn't use this kind of hack and
work proper. Just socket(), bind(), listen() and select(). Check
add_socket() in squirt_common.c...
Regards,
Jean
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda