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 » Socket - send multiple lines
Re: Socket - send multiple lines [message #29835 is a reply to message #29832] Sun, 21 November 2010 04:17 Go to previous messageGo to previous message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
Hi Honza

Most of my experience with C++ was several years ago, the char=0; was not what was expected, just something to get used to.
If a line in a file is:
ab
Ln = in.GetLine;
Ln[0] = 'a';
Ln[1] = 'b';
Ln[2] = 0;// Java or Python this is '\n'. Note there is no single quotes but if(Ln[2]=='\0'){// is true.

This is in TheIde to make the array before it is sent through the socket.

It is seldom this would be noticed except in a some situations.

Thanks for the help Honza.

Neil
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using U++ without UppIDE
Next Topic: [ASK] IBM DB2 Connector
Goto Forum:
  


Current Time: Mon May 20 00:02:39 CEST 2024

Total time taken to generate the page: 0.00551 seconds