[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Sockets
From: |
Nicolas Pinault |
Subject: |
[lwip-users] Sockets |
Date: |
Mon, 11 Jun 2007 13:23:01 +0200 |
User-agent: |
Thunderbird 1.5.0.12 (Windows/20070509) |
Hi all,
I need to make a PC and a portable system to communicate.
The PC sends operator requests to the portable system. Very small amount of
data (configuration data).
The portable system sends data to the PC when data are available. About
10KBytes/s.
As sockets are not tread safe, I use 2 stream sockets to acheive this
bidirectionnal communication.
One socket for receiving config.
One socket to send data.
This works well except when connection is lost.
On the receive side, I can do a select with a timeout and close the connection
when nothing has been received for a while.
But on the transmit side, things continue as if the connection was not lost
until... Well the behavior is not allways the same. Sometimes, it stalls (even
after reconnecting), sometimes not.
Any help, or comments would be appreciated.
Nicolas
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-users] Sockets,
Nicolas Pinault <=