Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums
Members
Pages
Search
Help
Register
Login
Home
Home
»
Community
»
Newbie corner
»
Socket Communication 101
Show:
Today's Messages
::
Show Polls
::
Message Navigator
E-mail to friend
Re: Socket Communication 101
[
message #38250
is a reply to
message #38248
]
Fri, 07 December 2012 22:08
nlneilson
Messages:
644
Registered:
January 2010
Location:
U.S. California. Mojave &...
Contributor
lectus wrote on Fri, 07 December 2012 11:57
1. It uses the same connection started by sock.Connect().
2. On the other side the sock.GetLine() reads everything until it finds \n and stores in a string without the \n.
3. Unless you're dealing with binary data I see no reason to not use strings ended with \n.
1. That makes sense.
2. And that must be under while data waiting or similar.
3. I use \n but it is with the \0 that ends the send and receive.
The data is passed to the client to send as a string with \0
The server receives as a string with the \0
Nothing is added or combined in the client and nothing is parsed in the server. That is done with error handling outside.
Less time in the socket and better error handling.
Report message to a moderator
[
Message index
]
Socket Communication 101
By:
nejnadusho
on Fri, 07 December 2012 18:02
Re: Socket Communication 101
By:
nlneilson
on Fri, 07 December 2012 18:20
Re: Socket Communication 101
By:
nejnadusho
on Fri, 07 December 2012 18:52
Re: Socket Communication 101
By:
lectus
on Fri, 07 December 2012 19:29
Re: Socket Communication 101
By:
nlneilson
on Fri, 07 December 2012 19:45
Re: Socket Communication 101
By:
mirek
on Fri, 07 December 2012 20:14
Re: Socket Communication 101
By:
nlneilson
on Fri, 07 December 2012 20:53
Re: Socket Communication 101
By:
lectus
on Fri, 07 December 2012 20:57
Re: Socket Communication 101
By:
nlneilson
on Fri, 07 December 2012 22:08
Re: Socket Communication 101
By:
nlneilson
on Fri, 14 December 2012 10:07
Re: Socket Communication 101
By:
nlneilson
on Sat, 15 December 2012 16:37
Re: Socket Communication 101
By:
nlneilson
on Tue, 16 April 2013 03:54
Re: Socket Communication 101
By:
mirek
on Tue, 16 April 2013 08:22
Re: Socket Communication 101
By:
nlneilson
on Tue, 16 April 2013 19:51
Re: Socket Communication 101
By:
mirek
on Tue, 16 April 2013 20:06
Re: Socket Communication 101
By:
nlneilson
on Tue, 16 April 2013 22:43
Re: Socket Communication 101
By:
mirek
on Wed, 17 April 2013 08:03
Re: Socket Communication 101
By:
nlneilson
on Sun, 05 May 2013 02:45
Re: Socket Communication 101
By:
lectus
on Fri, 07 December 2012 20:41
Re: Socket Communication 101
By:
lectus
on Sat, 08 December 2012 00:42
Re: Socket Communication 101
By:
nlneilson
on Sat, 08 December 2012 02:36
Re: Socket Communication 101
By:
lectus
on Sat, 08 December 2012 15:37
Re: Socket Communication 101
By:
nlneilson
on Sat, 08 December 2012 16:48
Re: Socket Communication 101
By:
nejnadusho
on Sun, 09 December 2012 05:11
Previous Topic:
ScatterCtrl / ScatterDraw - ShowLegend() problem and general Question
Next Topic:
Spin + Text
Goto Forum:
- Community
U++ community news and announcements
PR, media coverage, articles and documentation
U++ Webs: Functioning, Layout , Design, Features and Structure of these forums, homepage etc.
Coffee corner
Newbie corner
U++ based job offers
- Developing U++
U++ Developers corner
External resources
Releasing U++
UppHub
Bugs (& fixes)
Documentation
U++ TheIDE and Library: Releases and ChangeLogs
Mac OS
Android
- U++ Library support
U++ Library : Other (not classified elsewhere)
U++ Core
Look and Chameleon Technology
U++ Libraries and TheIDE: i18n, Unicode and Internationalization
U++ SQL
U++ MT-multithreading and servers
U++ Callbacks and Timers
U++ Widgets - General questions or Mixed problems
TopWindow&PopUp, TrayIcon
Menus&Toolbars
StatusBar&InfoCtrl
Splitter
TabCtrl
Slider&ProgressIndicator
ArrayCtrl, HeaderCtrl & GridCtrl
TreeCtrl
RichText,QTF,RTF...
LineEdit, EditFields, DocEdit
Draw, Display, Images, Bitmaps, Icons
FileSel&FileList, Path
CalendarCtrl
Skylark
ScatterDraw & ScatterCtrl
Archive
- U++ TheIDE
U++ TheIDE: Other Features Wishlist and/or Bugs
U++ TheIDE: Compiling, Linking, Debugging of your packages
U++ TheIDE: Installation, Compiling and Running of theide
U++ TheIDE: CodeEditor, Assist++, Topic++
U++ TheIDE: Packages
U++ TheIDE: Layout (Forms) Designer
U++ TheIDE: Icon designer
- Extra libraries, Code snippets, applications etc.
U++ users applications in progress and useful code snippets, including reference examples!
U++ Esc Interpreter, Esc Macros and templates
C++ language problems and code snippets
Applications created with U++
OS Problems etc., Win32, POSIX, MacOS, FreeBSD, X11 etc
-=]
Back to Top
[=-
[
Syndicate this forum (XML)
] [
] [
]
Current Time:
Mon Apr 28 11:12:16 CEST 2025
Total time taken to generate the page: 0.00748 seconds