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 » Community » Newbie corner » TcpSocket, Know when distant connection have been closed
Re: TcpSocket receiving ghost data [message #57219 is a reply to message #57218] Sat, 12 June 2021 18:00 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1226
Registered: August 2007
Senior Contributor
IsEof and isError do not include timeout errors - "it is not an error per se". (Hence: IsTimeout() Smile )

Upp::String data = d_activeConnection.GetLine();


What I can tell from the logs you shared, is, the GetLine() method is timing out.

My *guess* is that you need to add '\n' to the end of the data to be sent (That's how GetLine works. It will wait an EOL until it times out or encounters a socket error);


Best regards,
Oblivion



[Updated on: Sat, 12 June 2021 18:02]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: RichEdit with word wrap?
Next Topic: Calendar
Goto Forum:
  


Current Time: Sun Aug 24 23:23:24 CEST 2025

Total time taken to generate the page: 0.05406 seconds