Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7057943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:03:13+00:00 2026-05-28T04:03:13+00:00

TCP client sends data byte by byte. So, how to tell the server that

  • 0

TCP client sends data byte by byte. So, how to tell the server that this message has ended and the new message begins now?

One way is to fix a special character that’ll be sent as a bookmark, but that character can also be a part of the message causing confusions.

Any other optimum way out?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:03:14+00:00Added an answer on May 28, 2026 at 4:03 am

    If the message is binary, delimited encoding using a special character is not possible. Tag Length Value (TLV) encoding will be best suited for this.

    for example

     +--------+----------+----------------+    
     |  Tag   | Length   |  Content       |    
     | 0x0001 |  0x000C  | "HELLO, WORLD" |    
     +--------+----------+----------------+
    

    in addition to that, you can have more than one message type

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a client server application that sends XML over TCP/IP from client to
I'm writing a tcp client in Delphi for a server that has a series
I have a problem with an J2ME client app, that sends data to an
I have a client-server program. I'm sending data like this: private void Sender(string s,TcpClient
I implemented a TCP Client using a thread opening a socket to a server
I am trying to connect to a standalone desktop tcp server(java) from tcp client
I'm using C to implement a client server application. The client sends info to
my application sends file to server using (socket tcp c#) the file transfer works
I'm trying to create a client-server program that send and receive a string (its
Hi I have TCP/IP client server application. i want to send large serialized object

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.