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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:09:03+00:00 2026-06-04T14:09:03+00:00

I have limited Java Socket experience and all of it using TCP. I am

  • 0

I have limited Java Socket experience and all of it using TCP. I am trying to learn UDP. I am running a multiple process application that is using UDP multicasting. After some brief research (and my nascent understanding of the topic), I thought multicasting would be the proper approach.

Metaphorically I want all the processes to share the same “room” and should at “shout at” each other. So when process 1 sends a message “hello” I want all process 2..n to receive that packet and vice versa.

At first it all seemed to be working but then I realized I have a bug (if you can call it that). I start up the first process, and when I startup the second one, the first process receives the second’s message but not vice versa.

I was wondering, when I do MulticastSocket receive() on process 1, is that effecitvely taking that DatagramPacket off a stack that then process 2 doesn’t see when it does it’s recieve()?

  • 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-04T14:09:05+00:00Added an answer on June 4, 2026 at 2:09 pm

    The problem is not in the choice of protocol – TCP/IP won’t help, and neither would UDP broadcast.

    The problem is an operating system’s network stacks doesn’t buffer network traffic when there is nothing currently listening for it. And that is what happening with respect to the second process.

    In short, your scheme cannot work.


    One alternative is to have a “new” process multicast a “Who is there” message, and have all of the others respond with a multicast or directed packet. However, you are reinventing the wheel here. This problem has been solved many times before with various “middleware” stacks.

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

Sidebar

Related Questions

I have been trying with limited success to code a JSF application. In one
Im very new to C programing, but have limited experience with Python, Java, and
I have little (<1 year professional) experience with Perl Groovy/Java I have limited (<2
In my limited experience, I've been on several projects that have had some sort
We are developing an application in Java with struts2. We have a default authentication
I'm trying to familiarize myself with the embedded field, but also have limited resources
I am brand new to WCF, and have limited experience coding against web services.
I want to call a C subroutine from Java. I'm using JNI. I have
We have to communicate with a C++ component from a Java EE web application
I have limited knowledge of Java-based technologies, and for business enforced reasons, I may

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.