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 » [SOLVED] A problem with TcpSocket::GetLine()
Re: A problem with TcpSocket::GetLine() [message #41431 is a reply to message #41429] Mon, 16 December 2013 15:26 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1093
Registered: August 2007
Senior Contributor
Hello Mirek, I am uploading a modified version of the SocketClient example. It contains Turkish letters, which the GetLine() in SocketServer refuses to read.

By the way, changing "if(c < 0)" to "if(c == -1)" (in Sockep.cpp, line 837) seem to fix this problem, since Peek() returns -1 on both error and timeout. But I haven't examined the internals of TcpSocket class in detail, so I am not sure if it counts as a fix or a workaround.

Regards.


[Updated on: Mon, 16 December 2013 15:27]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: COM servers
Next Topic: GuiMT compilation error on ubuntu12.04
Goto Forum:
  


Current Time: Sat Apr 27 18:02:12 CEST 2024

Total time taken to generate the page: 0.04943 seconds