0

I want to broadcast a UDP message to all process. Like 255.255.255.255 is used to broadcast to all ips, is there any port to broadcast to every proceses?

Uzair Farooq
  • 917
  • 3
  • 15
  • 25

2 Answers2

5

No.

That's the short answer. The rest of this answer is just to get over the length limit.

blueshift
  • 6,742
  • 2
  • 39
  • 63
0

Do you want to broadcast to every process on a local system, like we send out UDP broadcasts on a network?

For Windows, you can see this. This is no about processes, but about services.

http://msdn.microsoft.com/en-us/library/windows/desktop/ms685149(v=vs.85).aspx

It might be theoretically possible to get a list of services, and call their Service Control Handlers. I am not sure if it can be implemented at all, and my best guess is it cannot.

I understand that you are going to throw the same "the assignment requires it" answer, but I am very interested to know what you are trying to achieve, by broadcasting to all processes.

Chinmoy
  • 1,750
  • 2
  • 21
  • 45