Home » U++ Library support » U++ MT-multithreading and servers » Non-Blocking socket example
Re: Socket example? [message #11091 is a reply to message #11063] |
Sun, 19 August 2007 14:23 |
|
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
luzr wrote on Fri, 17 August 2007 18:21 |
lectus wrote on Wed, 15 August 2007 14:33 |
What's right way to read and write lines from/to the client?
ReadRaw() looks OK for files. What about strings with \n at the end?
|
Well, "\n" / "\r\n" stupidity....
U++ way is to not to try some sort of automatic "text" translations (like those special binary/text modes in C fopen etc..) in streams.
In most cases, we prefer to manually supply '\r' on output and ignore it on input (only watch for '\n').
Mirek
|
Mirek, could you put that into FAQ's "about endlines" (or similar), please?
This really looks like the third STUPIPHIC way, then.
STrange Unexpected soPHisticated specifIC
lectus, sorry for trying to confuse you about those endlines.
|
|
|
|
|
Non-Blocking socket example
|
|
|
Re: Socket non block
By: lundman on Wed, 18 April 2007 09:33
|
|
|
Re: Socket non block
|
|
|
Socket example?
By: lectus on Thu, 09 August 2007 20:59
|
|
|
Re: Socket example?
By: bonami on Fri, 10 August 2007 04:55
|
|
|
Re: Socket example?
By: lectus on Fri, 10 August 2007 05:57
|
|
|
Re: Socket example?
By: bonami on Fri, 10 August 2007 08:16
|
|
|
Re: Socket example?
By: lectus on Mon, 13 August 2007 16:58
|
|
|
Re: Socket example?
By: fudadmin on Mon, 13 August 2007 18:34
|
|
|
Re: Socket example?
By: lectus on Mon, 13 August 2007 21:00
|
|
|
Re: Socket example?
By: fudadmin on Mon, 13 August 2007 22:52
|
|
|
Re: Socket example?
By: mezise on Mon, 13 August 2007 23:32
|
|
|
Re: Socket example?
By: lectus on Tue, 14 August 2007 04:06
|
|
|
Re: Socket example?
By: fudadmin on Wed, 15 August 2007 04:51
|
|
|
Re: Socket example?
|
|
|
Re: Socket example?
By: lectus on Wed, 15 August 2007 20:33
|
|
|
Re: Socket example?
By: fudadmin on Thu, 16 August 2007 08:12
|
|
|
Re: Socket example?
By: mirek on Fri, 17 August 2007 19:21
|
|
|
Re: Socket example?
By: fudadmin on Sun, 19 August 2007 14:23
|
|
|
Re: Socket example?
By: lectus on Sun, 19 August 2007 17:23
|
|
|
Re: Socket example?
By: fudadmin on Mon, 20 August 2007 01:58
|
|
|
Re: Socket example?
By: fudadmin on Mon, 20 August 2007 21:24
|
Goto Forum:
Current Time: Wed May 15 19:39:52 CEST 2024
Total time taken to generate the page: 0.03353 seconds
|