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 6702569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:04:08+00:00 2026-05-26T07:04:08+00:00

I have c# executables called server, client and client2 messaging each other on the

  • 0

I have c# executables called server, client and client2 messaging each other on the same addr. I am differentiating the msgs by port number at which they are coming.

regular run-1
Server starts
client joins, leaves

run-2
server starts
client 2 joins, leaves

run-3
server starts
client joins
client2 joins (here comes the problem), sometimes it gets the reply from server, sometimes it just hangs and the reply from server doesnt reach.

I am using the UDPClient blocking msg transfer routines.

current solution: I am sending the same msg from server twice(in hope of atleast getting the second time around), as it is very important, and I am no longer losing this msg. What can be potential downfall of such a temporary hack?

Also please tell me if my q? is incomplete I ll provide more details.

  • 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-26T07:04:09+00:00Added an answer on May 26, 2026 at 7:04 am

    UDP itself is unreliable. You can write your own code to make it reliable for your needs, however it’s up to you to do that. If you want a reliable stream, use TCP.

    Sending a UDP packet twice may reduce problems with packet loss, however you have no guarantee. I suggest you implement some acknowledgement system where the clients send a packet back to the server when they’ve successfully processed an incoming packet. The server repeatedly sends the original packet until it sees the acknowledgement. (You should still have some limit on this, otherwise it’ll try forever)

    A situation where UDP is useful is where you don’t mind the occasional lost packet, but need the reduced latency that UDP can bring (as there are no built-in re-transmits). For instance state information for games, where the server sends game data via UDP. If a client doesn’t receive a packet, it’ll catch up when the next one arrives in a few milliseconds.

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

Sidebar

Related Questions

We have an assembly that is called repeatedly by different executables and it shares
I have an application on my server that is called leaf.exe , that haves
On windows systems, certain dos commands don't have executables that can be explicitly called
I have a directory called project . It contains two sub-directories called client and
Assume I have an executable called 'exe' which spawns a child process. This child
I have a Windows executable (whoami) which is crashing every so often. It's called
I have an application and executables. I want my application to run my executables.
I have a Perl/POE/Tk script running on Win32 ActivePerl that calls executables using system
Context: I have a WPF App that uses certain unmanaged DLLs in the D:\WordAutomation\MyApp_Source\Executables\MyApp
I've noticed (on Win32 at least) that in executables, code sections (.text) have the

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.