Please do not send Linux-IrDA to the following email address
[EMAIL PROTECTED]

Thank you.

Best regards,

                Jure Oblak



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, April 18, 2001 12:02 PM
To: [EMAIL PROTECTED]
Subject: Linux-IrDA digest, Vol 1 #339 - 2 msgs


Send Linux-IrDA mailing list submissions to
        [EMAIL PROTECTED]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Linux-IrDA digest..."


Today's Topics:

   1. Re: Central Resoruce, was : Omnibook 6000 and Irda (Michael McConnell)
   2. Re: Re : sockets/select (Dag Brattli)

--__--__--

Message: 1
Date: Tue, 17 Apr 2001 19:29:04 +0100 (BST)
From: Michael McConnell <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
cc: <[EMAIL PROTECTED]>
Subject: Re: [Linux-IrDA]Central Resoruce, was : Omnibook 6000 and Irda
Organization: Eridani Star System
Reply-To: [EMAIL PROTECTED]

On Tue, 17 Apr 2001, Werner Heuser wrote:

> ...
> > Just a thought, is anyone here collating all these IrDA 'howto' pages
that
> > people (like yourself) are creating? As I'm seeing here there's a wide
> > variety of IrDA chipsets/dongles and IrDA devices it seems to be nigh on
> > impossible to write one Grand Unified Infrared HowTo...
> >
> > If no-one else is doing this, I might as well have a go at making a
central
> > web resource linking to guides like Jean Tourillhes one here.
>
>
> irda-utils: http://irda.sourceforge.net
> Tutorial, IrNET, eSquirt, ..:
> http://www.hpl.hp.com/personal/Jean_Tourrilhes/IrDA/
> Infrared-HOWTO, Hardware-Survey, man pages: http://mobilix.org/
> ...
>
> At least I tried to give a survey of these and more Linux/IrDA resources
> in
> the Infrared-HOWTO.

Okay. If someone has done a comprehensive collection, then I'd like to know
;) Otherwise I've tried to make a start, at www.eridani.co.uk/irda/

... and I've already got the above on it. :)

Any others out there, please email me :)

-- Michael "Soruk" McConnell                       [Eridani Linux 6.3 Now!]
Eridani Linux  --  The Most Up-to-Date Red Hat-based Linux CDROMs Available
Email: [EMAIL PROTECTED]  http://www.eridani.co.uk   Fax: +44-8701-600807
    "No. 'Eureka' is Greek for 'This bath is too hot.'" - Dr Who.


--__--__--

Message: 2
Date: Wed, 18 Apr 2001 00:12:06 +0200 (CEST)
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
From: Dag Brattli <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: [Linux-IrDA]Re : sockets/select

On Tue, 17 Apr 2001 12:47:43 -0500, Andrew Sutton wrote:

> i forgot to ask... when will changes from this and other issues be
> merged back into the kernel or available for a patch? if it's a patch
> where can i get it?
> 
> thanks,

Here is a small patch that fixes my write event problem during
connection establishment, and it will now give a write event instead
of a read event. But I don't think it will fix your strange problem
tho'. I think that must be something else.

-- Dag


--- linux-2.4.3-ac5/net/irda/af_irda.c  Fri Apr 13 14:53:47 2001
+++ linux/net/irda/af_irda.c    Wed Apr 18 00:05:30 2001
@@ -219,7 +219,8 @@ static void irda_connect_confirm(void *i
 
        memcpy(&self->qos_tx, qos, sizeof(struct qos_info));
 
-       skb_queue_tail(&sk->receive_queue, skb);
+       /*skb_queue_tail(&sk->receive_queue, skb);*/
+       kfree_skb(skb);
 
        /* We are now connected! */
        sk->state = TCP_ESTABLISHED;
@@ -1623,34 +1624,54 @@ static unsigned int irda_poll(struct fil
 {
        struct sock *sk = sock->sk;
        unsigned int mask;
+       struct irda_sock *self;
 
        IRDA_DEBUG(4, __FUNCTION__ "()\n");
 
+       self = sk->protinfo.irda;
        poll_wait(file, sk->sleep, wait);
        mask = 0;
 
-       /* exceptional events? */
+       /* Exceptional events? */
        if (sk->err)
                mask |= POLLERR;
        if (sk->shutdown & RCV_SHUTDOWN)
                mask |= POLLHUP;
 
-       /* readable? */
+       /* Readable? */
        if (!skb_queue_empty(&sk->receive_queue)) {
                IRDA_DEBUG(4, "Socket is readable\n");
                mask |= POLLIN | POLLRDNORM;
        }
+
        /* Connection-based need to check for termination and startup */
-       if (sk->type == SOCK_STREAM && sk->state==TCP_CLOSE)
-               mask |= POLLHUP;
+       switch (sk->type) {
+       case SOCK_STREAM:
+               if (sk->state == TCP_CLOSE)
+                       mask |= POLLHUP;
 
-       /*
-        * we set writable also when the other side has shut down the
-        * connection. This prevents stuck sockets.
-        */
-       if (sk->sndbuf - (int)atomic_read(&sk->wmem_alloc) >=
SOCK_MIN_WRITE_SPACE)
+               if (sk->state == TCP_ESTABLISHED) {
+                       if ((self->tx_flow == FLOW_START) && 
+                           (sk->sndbuf - (int)atomic_read(&sk->wmem_alloc)
>= SOCK_MIN_WRITE_SPACE))
+                       {
+                               mask |= POLLOUT | POLLWRNORM | POLLWRBAND;
+                       }
+               }
+               break;
+       case SOCK_SEQPACKET:
+               if ((self->tx_flow == FLOW_START) && 
+                   (sk->sndbuf - (int)atomic_read(&sk->wmem_alloc) >=
SOCK_MIN_WRITE_SPACE))
+               {       
                        mask |= POLLOUT | POLLWRNORM | POLLWRBAND;
-
+               }
+               break;
+       case SOCK_DGRAM:
+               if (sk->sndbuf - (int)atomic_read(&sk->wmem_alloc) >=
SOCK_MIN_WRITE_SPACE)
+                       mask |= POLLOUT | POLLWRNORM | POLLWRBAND;
+               break;
+       default:
+               break;
+       }               
        return mask;
 }
 

-- 
Dag Brattli,                     Mail:  [EMAIL PROTECTED]
CEO, ObexCode SUS                Web:   http://www.obexcode.com
Antenneveien 12                  Phone: +47 776 52 806
NO-9017 Tromsoe, NORWAY          Cell:  +47 481 06 352




--__--__--

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


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

Reply via email to