lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Problem with sockets layer


From: Kieran Mansley
Subject: Re: [lwip-users] Problem with sockets layer
Date: Thu, 24 May 2007 16:05:25 +0100

On Thu, 2007-05-24 at 16:38 +0200, address@hidden wrote:
> 
> Hello to everybody, 
> 
> I am  working with the sockets layer on a lwip stack with a port to
> Nucleus RTOS. A few days ago I asked a question dealing with the
> select function and semaphores. Further investigations have led me to
> discover that the select function gives up waiting for the timeval
> structure when I use connect previously. This sounds pretty strange,
> but now I am sure about that. In the same piece of code I have written
> a menu with 2 options. In the first one I use select after listen, and
> it waits the introduced value (5 seconds), all ok. But when I choose
> the second option, another socket is used with connect, and in the
> next select call I can see through debugging that no waiting takes
> place (the same value is used, 5 seconds). Has somebody experienced
> any similar problem???  Am I making any obvious mistake??? 

Can you provide a summary of the socket calls made by both server and
client in the two cases?  It would help me understand what is going on.

e.g. is it something like:

Server    Client
======    ======
socket
bind
listen
          socket
          connect <server>
accept    
select           

and in the other case:

Server    Client
======    ======
socket
bind
listen
          socket
          connect <server>
accept
          select

Is there any data transfer involved?

Kieran





reply via email to

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