Questions tagged [broadcast]

A broadcast is a one-to-many message passing interface. It is usually used in the context of a network programming or event-driven programming.

1905 questions
134
votes
9 answers

WebRTC - scalable live stream broadcasting / multicasting

PROBLEM: WebRTC gives us peer-to-peer video/audio connections. It is perfect for p2p calls, hangouts. But what about broadcasting (one-to-many, for example, 1-to-10000)? Lets say we have a broadcaster "B" and two attendees "A1", "A2". Of course it…
igorpavlov
  • 3,576
  • 6
  • 29
  • 56
86
votes
2 answers

Using MPI_Bcast for MPI communication

I'm trying to broadcast a message from the root node to all other nodes using MPI_Bcast. However, whenever I run this program it always hangs at the beginning. Does anybody know what's wrong with it? #include #include int main(int…
David
  • 2,080
  • 5
  • 29
  • 44
81
votes
13 answers

Where is the all Android broadcast Intent list

I want to receive the Android broadcast messages. Is there a list of all intents?
batfree
  • 1,881
  • 2
  • 13
  • 6
68
votes
6 answers
60
votes
3 answers

How to send and receive broadcast message

I am trying to pass data between two activities that are inside of tabs. I am trying to use sendBroadcast(). With breakpoints set I never reach onReceive(). Manifest:
Yack
  • 1,400
  • 1
  • 10
  • 13
57
votes
9 answers

Is there a broadcast action for volume changes?

I'm programming a small widget that needs to be updated whenever the user changes the ringer volume or the vibrate settings. Capturing android.media.VIBRATE_SETTING_CHANGED works just fine for the vibrate settings, but I haven't found any way of…
luthier
  • 2,674
  • 4
  • 32
  • 35
56
votes
7 answers

How to Send BroadCast from one app to another app

I have App A and App B. In App A I want to send broadcast to App B. This is the code for App A: final Intent intent = new Intent(); intent.setAction("com.pkg.perform.Ruby"); intent.putExtra("KeyName", "code1id"); intent.setComponent(new…
abh22ishek
  • 2,631
  • 4
  • 27
  • 47
55
votes
4 answers

socket.io - how to broadcast messages on a namespace?

According to socket.io examples: To broadcast, simply add a broadcast flag to emit and send method calls. Broadcasting means sending a message to everyone else except for the socket that starts it. var io =…
JustAMartin
  • 13,165
  • 18
  • 99
  • 183
46
votes
3 answers

Can I use broadcast or multicast for TCP?

For Internet Protocol (IP) I can use multicast: in IPv4: Internet Group Management Protocol (IGMP) in IPv6: Multicast Listener Discovery Also, in example, for UDP I can use: broadcast - to send packet to range of addresses multicast - to send…
Alex
  • 12,578
  • 15
  • 99
  • 195
39
votes
6 answers

How can I update a broadcast variable in spark streaming?

I have, I believe, a relatively common use case for spark streaming: I have a stream of objects that I would like to filter based on some reference data Initially, I thought that this would be a very simple thing to achieve using a Broadcast…
Andrew Stubbs
  • 4,322
  • 3
  • 29
  • 48
38
votes
6 answers

How to set java.net.preferIPv4Stack=true at runtime?

I need to disable IPv6. For that the java documentation indicates setting jvm property java.net.preferIPv4Stack=true. But I don't understand how to do it from the code itself. Many forums demonstrated doing it from the command prompt, but I need to…
Caffeinated Coder
  • 670
  • 1
  • 8
  • 24
36
votes
3 answers

Difference between Service and Broadcast receivers in android

I want to know the difference between services and broadcast receivers, can anyone point out an example that can be observed on android mobile devices. Thanks
prago
  • 5,225
  • 5
  • 25
  • 27
32
votes
3 answers

DownloadManager.ACTION_DOWNLOAD_COMPLETE broadcast receiver receiving same download id more than once with different download statuses in Android

I am using Android DownloadManger System Service for downloading some files in following way dwnId = mgr.enqueue(new DownloadManager.Request(serveruri) .setAllowedNetworkTypes(DownloadManager.Request.NETWORK_WIFI | …
Ganesh K
  • 2,623
  • 9
  • 51
  • 78
32
votes
5 answers

How can I determine network and broadcast address from the IP address and subnet mask?

For example: IP Address: 130.45.34.36 Mask: 255.255.240.0 What would be Net ID/Subnet Address, and Broadcast Address?
Apprentice
  • 329
  • 1
  • 4
  • 4
32
votes
3 answers

Receiving Broadcast Packets in Python

I have the following code which sends a udp packet that is broadcasted in the subnet. from socket import * s=socket(AF_INET, SOCK_DGRAM) s.setsockopt(SOL_SOCKET, SO_BROADCAST, 1) s.sendto('this is testing',('255.255.255.255',12345)) The following…
nitish712
  • 19,504
  • 5
  • 26
  • 34
1
2 3
99 100