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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:29:03+00:00 2026-06-01T15:29:03+00:00

I know UDP is not a connection oriented protocol but UDP is a requirement

  • 0

I know UDP is not a connection oriented protocol but UDP is a requirement on what I have to do.

While I’m sending a bunch of packets from a client application to the server application, is there anyway to know if the server application got closed (eg. the user terminated the process)?

One way is to periodically ping the server (in a different thread from the one sending/receiving the data stream) and wait for a response. If the server doesn’t acknowledge the ping, it may be down (although is not guaranteed, this is UDP after all).

But is there a better/simpler way?

  • 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-01T15:29:04+00:00Added an answer on June 1, 2026 at 3:29 pm

    There is no reliable way. The protocols I have implemented that use UDP as the transport use a request/response model. For example, SIP, does it this way (in general, of course):

    Say you have 2 peers – A and B. If peer A sends a request to peer B, peer B should always send a response back. If peer A does not receive a response in a certain time, it resends the previous message. Peer A will keep resending the message until it gets a response from peer B OR until a specified expiry time (up to you what this is). If that time has expired, you assume that peer B is down.

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

Sidebar

Related Questions

First of all, I know that UDP is not a reliable protocol but I
As we know .Net has UdpClient for simple Socket usage for UDP. From MSDN:
I'm working on pseudo-transport layer software that runs over UDP, providing reliable connection-oriented transmission,
I have a simple UDP socket program in C. The client transmits data to
I have a thread that is Broadcasting UDP packets. I have another thread that
I know that SOCKS 5 supports UDP and I have been over the structure
I´ve downloaded the UDPEcho sample code from Apple to make a simple UDP connection
SOLVED please close the question (but I do not really know how :/ bad
I know how to send byte data to a server via the udp protocol.
I discovered almost accidentally that my machine was sending and receiving UDP packets to

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.