errno 54 (Connection reset by peer) while using UDP socket in INTEGRITY RTOS simulator

Jan 04, 2006 0 Replies

=============== RTOS: INTEGRITY Host: WindowsXP Professional Target: INTEGRITY Simulator (isimppc) ===============


------------------------------------------------------------- Host and Target have the same IP Address



-------------------------------------------------------------



I run the following three applications:


Application-1 (on Host) UDP socket while (true) { sendto (sock, ...) to Application-2 (on Target) // sendto() sends via Port 5002 to Port 5000 _sleep (5000); // 5 secs }



Application-2 (on Target) UDP socket while (true) { recvfrom(sock, ...); // from Application-1 (on Host) // recvfrom() is blocked and receives via Port 5000



sendto (sock, ...) to Application-3 (on Host) // sendto() sends via Port 5000 to Port 5001 }



Application-3 (on Host) UDP socket while (true) { recvfrom(sock, ...); // from Application-2 (on Target) // recvfrom() is blocked and receives via Port 5001 }


Stage-1. First of all I run Application-3 (on Host), after that - Application-2 (on Target), after that - Application-1 (on Host). It works quite fine.



Stage-2. I kill Application-3 (on Host). Application-2 (on Target) crashes on recvfrom() (!?) with errno 54 (Connection reset by peer)


Any suggestions?



Thanks.


--------------- Alex Vinokur email: alex DOT vinokur AT gmail DOT com

formatting link
formatting link



Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required