Home » Community » Newbie corner » Socket Communication 101
Re: Socket Communication 101 [message #38247 is a reply to message #38244] |
Fri, 07 December 2012 20:53   |
nlneilson
Messages: 644 Registered: January 2010 Location: U.S. California. Mojave &...
|
Contributor |
|
|
In the for() loop
sock.Put(FruitList[i] + '\n');
it looks like a sock.Put is called each time through the loop or is each char sent through the same connection and then '\n' is sent after all the char been sent?
or is it ch \n ch \n ch \n
Also does String GetLine() stop at each \n or is it looking for \0
Maybe String GetAll(int len) will read a bunch of data including several \n until the max len is reached or \0
My client is in U++ and it will send a string with several \n and it is parsed after the server in the Java app.
edit: The last post by lectus where the data is added and that is sent is the way I do it.
[Updated on: Sat, 08 December 2012 00:14] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Apr 28 14:43:55 CEST 2025
Total time taken to generate the page: 0.00825 seconds
|