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

  • SEARCH
  • Home
  • 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 8861389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:28:57+00:00 2026-06-14T15:28:57+00:00

I have a client who is looking to reduce the number of bytes transmitted

  • 0

I have a client who is looking to reduce the number of bytes transmitted over the wire to the absolute minimum. When creating a udpClient class and invoking the receive method, a byte array is returned. Currently I’m using receiveBytes.Length to get the number of bytes in the message.

However, under heavy load with multiple messages coming in, it’s been suggested that this is not sufficient, justifying the need to send the packet length as the first 2 bytes of the message.

Can I depend on either a complete packet or no packet being received, and hence rely on the Length property?

Edit

Thanks for all the comments.

Using UDP is in addition to TCP. TCP is used when we need to implement sequence and a guarantee. UDP will be used for data that is good to have in any order but not critical. Yes, I know it means adding OTT encryption. My question was simply can I depend on ONLY complete packets arriving.

  • 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-06-14T15:28:58+00:00Added an answer on June 14, 2026 at 3:28 pm

    Each UDP packet is delivered independently, and with no guarantee that any other packet will arrive.

    How would you (on receiving one) know to wait for another one, and what could you do if it never turned up? Long way of saying, you’ll receive the sent message or none at all.

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

Sidebar

Related Questions

I have a client who is looking for a solution to integrate cctv with
We have a client who is looking for a means to import and categorize
Have a client who is looking at developing a site where clients get access
I have a client who has a fancy facebook page and it looking to
I have a client who has brought in another developer to work on a
I have a client who wants his script to be tweaked for some modifications.
We have a client who desires some extremely long pages. Say 4000px plus. They
I have a client who owns a business with a handful of employees. He
I have a client who is currently using WebTrends for their analytics, and is
I have a client who needs somebody to develop a countdown widget for their

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.