[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
detecting TCP disconnect in rtems-4.0.0
- Date: Wed, 03 May 2000 14:56:34 -0600
- From: eric at cls.usask.ca (Eric Norum)
- Subject: detecting TCP disconnect in rtems-4.0.0
Thomas Doerfler wrote:
> I have a TCP/IP server application running under rtems-4.0.0. When
> the server has received a command from a client, it will be busy for
> a long time (>30 seconds).
> Now I want the server to detect, when the client disconnects during
> command execution, because in these cases the server can abort
> execution and resume to listen for a new connection.
> Under BSD (and Linux), the "poll" system call would do the job, but
> it is not available unter rtems-4.0.0. Is there any other way to
> detect the connection state of a socket?
RTEMS provides select, and you can specify timeouts for socket
Eric Norum eric at cls.usask.ca
Canadian Light Source Phone: (306) 966-6308
University of Saskatchewan FAX: (306) 966-6058