Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » Checking socket connection after send.
Re: Checking socket connection after send. [message #14247 is a reply to message #14242] Wed, 20 February 2008 22:32 Go to previous messageGo to previous message
captainc is currently offline  captainc
Messages: 278
Registered: December 2006
Location: New Jersey, USA
Experienced Member
What about the SO_KEEPALIVE option? I've been doing some reading on this. Could this be used in setsockopt() to detect connection breaks?

Mainly my issue is this... I am using socket to send files from one machine to another. I can disconnect the connection in the middle of the transmission whereby the sending side finishes sending without a problem, but the receiving side doesn't receive the full content and gets an error (IsError() --> 10054 socket(272) / recv: Connection reset by peer. (WSAECONNRESET)) The sender never has the chance to detect the error before finishing its operations, which in my case, it deleted the source file because it thinks it is done with it.

[Updated on: Wed, 20 February 2008 23:10]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Intentionally inconstistent use of "Atomic" in Mt.h?
Next Topic: Detect connection, valid URL, 404 page
Goto Forum:
  


Current Time: Thu Jun 06 21:32:23 CEST 2024

Total time taken to generate the page: 0.02295 seconds