• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sending a LARGE string from Server to Client

 
Alex DeLaad
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I wish to send a really large string from my server (which is a command line console) to a client (which is an applet).
I need to send a string of between 400 and 550 characters in length.
I need some advice as to whether this is a safe process (i.e send as one large "string")
or should I break the string up into smaller strings.
Any other suggestions are welcome.
Thanks,
Alex.
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Alex DeLaad:
I need to send a string of between 400 and 550 characters in length.
That's not large at all -- it fits easily within a single TCP packet. And even if this were not the case, the TCP protocol guarantees that barring some fatal network problem your entire string will end up at the other side: packet arriving out-of-order are reordered, dropped packets are retransmitted, etc.
In summary, don't worry. Have fun
- Peter
 
Miguel Imoooo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can thanks the old timers for the great TCP standard...
=)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!