|
|
Home » U++ Library support » U++ MT-multithreading and servers » How to create sockets that don't block the GUI?
Re: How to create sockets that don't block the GUI? [message #38441 is a reply to message #38241] |
Sat, 15 December 2012 18:40   |
nlneilson
Messages: 644 Registered: January 2010 Location: U.S. California. Mojave &...
|
Contributor |
|
|
What is being sent through a socket is a bunch of character ending with \0.
After it is received it can be parsed into separate lines with \n
Do all of the addition of characters before passing the data to the client to be sent and on the server just pass the whole buffer out to be parsed.
For small amounts of data it can be added and parsed in the client and server.
The \n or \r are just like any other character as far as what is in the buffer or packet sent. If the actual packet size limit is 65536 then there could be many \n or whatever.
The only character that has real significance is \0 which indicates the END of the packet.
Parse what is in the packet outside the server code unless the amount of data is small.
[Updated on: Sat, 15 December 2012 18:50] Report message to a moderator
|
|
|
 |
|
How to create sockets that don't block the GUI?
By: lectus on Fri, 07 December 2012 13:38
|
 |
|
Re: How to create sockets that don't block the GUI?
By: Zbych on Fri, 07 December 2012 13:48
|
 |
|
Re: How to create sockets that don't block the GUI?
By: lectus on Fri, 07 December 2012 13:53
|
 |
|
Re: How to create sockets that don't block the GUI?
By: Zbych on Fri, 07 December 2012 14:06
|
 |
|
Re: How to create sockets that don't block the GUI?
By: lectus on Fri, 07 December 2012 14:06
|
 |
|
Re: How to create sockets that don't block the GUI?
|
 |
|
Re: How to create sockets that don't block the GUI?
By: lectus on Fri, 07 December 2012 16:00
|
 |
|
Re: How to create sockets that don't block the GUI?
|
 |
|
Re: How to create sockets that don't block the GUI?
By: lectus on Fri, 07 December 2012 19:28
|
 |
|
Re: How to create sockets that don't block the GUI?
|
 |
|
Re: How to create sockets that don't block the GUI?
|
 |
|
Re: How to create sockets that don't block the GUI?
|
 |
|
Re: How to create sockets that don't block the GUI?
By: jlh67 on Mon, 17 February 2014 09:51
|
 |
|
Re: How to create sockets that don't block the GUI?
|
 |
|
Re: How to create sockets that don't block the GUI?
By: jlh67 on Mon, 17 February 2014 17:52
|
 |
|
Re: How to create sockets that don't block the GUI?
|
 |
|
Re: How to create sockets that don't block the GUI?
By: jlh67 on Tue, 18 February 2014 21:19
|
 |
|
Re: How to create sockets that don't block the GUI?
|
 |
|
Re: How to create sockets that don't block the GUI?
By: jlh67 on Wed, 19 February 2014 18:07
|
 |
|
Re: How to create sockets that don't block the GUI?
By: MrSarup on Tue, 20 December 2016 13:02
|
Goto Forum:
Current Time: Mon Aug 25 12:16:19 CEST 2025
Total time taken to generate the page: 0.05849 seconds
|
|
|