detecting TCP disconnect in rtems-4.0.0

Eric Norum eric at cls.usask.ca
Wed May 3 20:56:34 UTC 2000


Thomas Doerfler wrote:
> 
> Hi,
> 
> 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
operations, too.

-- 
Eric Norum                                 eric at cls.usask.ca
Canadian Light Source                      Phone: (306) 966-6308
University of Saskatchewan                 FAX:   (306) 966-6058
Saskatoon, Canada.



More information about the users mailing list