[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #27116] select() does not appear to work with timeval

From: Stephane Lesage
Subject: [lwip-devel] [bug #27116] select() does not appear to work with timeval of 0
Date: Mon, 27 Jul 2009 08:44:34 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

Follow-up Comment #1, bug #27116 (project lwip):

select with timeout 0 perfectly works for me on BF536.
You should upgrade to Visual DSP++ 5.0 Update 6, it has a more recent version
of LwIP:


int ReadTimeOut(int sock, int tv_ms)
        // Set up FD set and timeval
        fd_set  efds;
        FD_SET(sock, &efds);
        struct timeval tv;
        tv.tv_sec = tv_ms/1000;
        tv.tv_usec = 1000*(tv_ms%1000);

        // Wait socket for specified timeout
        return select(sock+1, &efds, NULL, NULL, &tv);


Reply to this item at:


  Message posté via/par Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]