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.
                                	
	broadcast
    
                            
                        
                    
            1,906
            questions
        
        
            134
            votes
        
        
            9
            answers
        
        
            56k
            views
        
    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 ...
            
        
       
    
            86
            votes
        
        
            2
            answers
        
        
            90k
            views
        
    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?
...
            
        
       
    
            81
            votes
        
        
            13
            answers
        
        
            71k
            views
        
    Where is the all Android broadcast Intent list
                I want to receive the Android broadcast messages. Is there a list of all intents?
            
        
       
    
            68
            votes
        
        
            6
            answers
        
        
            49k
            views
        
    Android - how to receive broadcast intents ACTION_SCREEN_ON/OFF?
                <application>
         <receiver android:name=".MyBroadcastReceiver" android:enabled="true">
                <intent-filter>
                      <action android:name="android....
            
        
       
    
            61
            votes
        
        
            4
            answers
        
        
            116k
            views
        
    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: 
<activity
    android:...
            
        
       
    
            58
            votes
        
        
            9
            answers
        
        
            51k
            views
        
    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 ...
            
        
       
    
            56
            votes
        
        
            7
            answers
        
        
            53k
            views
        
    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",...
            
        
       
    
            55
            votes
        
        
            4
            answers
        
        
            84k
            views
        
    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.
...
            
        
       
    
            46
            votes
        
        
            3
            answers
        
        
            56k
            views
        
    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 ...
            
        
       
    
            39
            votes
        
        
            6
            answers
        
        
            27k
            views
        
    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 ...
            
        
       
    
            38
            votes
        
        
            6
            answers
        
        
            125k
            views
        
    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 ...
            
        
       
    
            36
            votes
        
        
            3
            answers
        
        
            26k
            views
        
    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
            
        
       
    
            32
            votes
        
        
            5
            answers
        
        
            97k
            views
        
    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?
            
        
       
    
            32
            votes
        
        
            3
            answers
        
        
            55k
            views
        
    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 ...
            
        
       
    
            32
            votes
        
        
            3
            answers
        
        
            34k
            views
        
    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(...
            
        
       
    
            30
            votes
        
        
            3
            answers
        
        
            26k
            views
        
    AngularJS $broadcast with multiple parameters
                Can I have a $broadcast $on with multiple parameters,
something like:
$scope.$broadcast('event',$scope.item, $scope.item);
Is it possible to have something like this or something similar in any case ...
            
        
       
    
            29
            votes
        
        
            3
            answers
        
        
            51k
            views
        
    UDP-Broadcast on all interfaces
                On a Linux system with a wired and a wireless interface (e.g. 192.168.1.x and 192.168.2.x subnets) I want to send a UDP broadcast that goes out via ALL available interfaces (i.e. both through the ...
            
        
       
    
            26
            votes
        
        
            5
            answers
        
        
            30k
            views
        
    Android : restart application after update - ACTION_PACKAGE_REPLACED
                My application that is not on Play Store verify on the web If there are a new version and download and start it. After the installation I would like to restart the application and I would use a ...
            
        
       
    
            25
            votes
        
        
            6
            answers
        
        
            27k
            views
        
    angularJS $on event handler trigger order
                I was wondering two things, in the context of angularJS event handling. 
How is defined the order in which handlers listening to the same event are triggered?
Is it a sign of a bad design if you ...
            
        
       
    
            25
            votes
        
        
            1
            answer
        
        
            27k
            views
        
    Multicast vs Broadcast in LAN
                Is there any advantage to using a multicast group to send messages rather than just broadcasting them to a specific port? I understand that when broadcasting, other computers that don't want the ...
            
        
       
    
            24
            votes
        
        
            4
            answers
        
        
            38k
            views
        
    Send Broadcast datagram
                I need to send a broadcast datagram to all machine (servers) connected to my network.
I'm using NodeJS Multicast
Client
var dgram = require('dgram');
var message = new Buffer("Some bytes");
var ...
            
        
       
    
            23
            votes
        
        
            1
            answer
        
        
            19k
            views
        
    Bluetooth broadcasting
                I want to broadcast data from one device using Bluetooth to numerous nearby devices. Now, I know Bluetooth broadcasting exists, but is it possible using Android's existing API? If not, are there any ...
            
        
       
    
            21
            votes
        
        
            2
            answers
        
        
            11k
            views
        
    How to correctly filter Package replaced broadcast
                I am trying to catch the package replaced broadcast for my app and only my app, but for some reason in my reciever I am the broadcast for every app that is updated.  I thought you only needed to set ...
            
        
       
    
            20
            votes
        
        
            11
            answers
        
        
            60k
            views
        
    Problems with SO_BINDTODEVICE Linux socket option
                I have a PC with two network cards. One (eth0) is for LAN/internet and the other for UDP communication with one microcontroller device. The microcontroller has an IP (192.168.7.2) and a MAC address. ...
            
        
       
    
            20
            votes
        
        
            3
            answers
        
        
            77k
            views
        
    Network UDP broadcast design?
                I am working on a C++ server/.NET client applications couple in which my server (which runs the c++ on linux) broadcasts a message to show it's alive to the whole network and my .NET program listens ...
            
        
       
    
            20
            votes
        
        
            1
            answer
        
        
            46k
            views
        
    Python UDP Broadcast not sending
                I am trying to UDP broadcast from a Python program to two LabView programs. I cannot seem to get the broadcast to send and I am not sure where my socket initialization is wrong, broadcasting seems ...
            
        
       
    
            20
            votes
        
        
            2
            answers
        
        
            40k
            views
        
    Send Broadcast UDP but not receive it on other Android devices
                I am trying to develop an app that sends some broadcast messages and receives some answers from the other android devices. I am having some trouble receiving the UDP messages from the other devices. I ...
            
        
       
    
            19
            votes
        
        
            3
            answers
        
        
            44k
            views
        
    What is the maximum size for a broadcast object in Spark?
                When using Dataframe broadcast function or the SparkContext broadcast functions, what is the maximum object size that can be dispatched to all executors?
            
        
       
    
            18
            votes
        
        
            6
            answers
        
        
            32k
            views
        
    Turn on screen on device
                How can I turn the sceen on ?
I tried something like this
adb -d  shell am broadcast -a android.intent.action.SCREEN_ON
It really should work, I send broadcast intent it is received by the system, ...
            
        
       
    
            18
            votes
        
        
            5
            answers
        
        
            60k
            views
        
    Calculate broadcast address from ip and subnet mask
                I want to calculate the broadcast address for:
IP:     192.168.3.1
Subnet: 255.255.255.0
=       192.168.3.255
in C.
I know the way (doing fancy bitwise OR's between the inversed IP and subnet), ...
            
        
       
    
            18
            votes
        
        
            2
            answers
        
        
            25k
            views
        
    Angular 2 event broadcast
                New to Angular 2. I'm working on broadcast a event between same level component. Currently I know EventEmitter just can transfer a event to upper level component.
I have checked this this link and ...
            
        
       
    
            18
            votes
        
        
            1
            answer
        
        
            23k
            views
        
    boost::asio UDP broadcasting
                I want to broadcast UDP messages to all computers in a local network using boost::asio. Working through the examples I came up with 
try {
    socket.open(boost::asio::ip::udp::v4());
    boost::asio:...
            
        
       
    
            18
            votes
        
        
            3
            answers
        
        
            14k
            views
        
    AngularJs/ .provider / how to get the rootScope to make a broadcast?
                Now my task is to rewrite $exceptionHandler provider so that it will output modal dialog with message and stop default event.
What I do:
in project init I use method .provider:
.provider('$...
            
        
       
    
            18
            votes
        
        
            1
            answer
        
        
            5k
            views
        
    How can Android broadcast BLE local name like in iOS?
                I've got an Android app advertising ble broadcast data with a service uuid and local name. The problem is that this "local name" (aka bluetooth device name) is limited to 8 characters, each is a 16-...
            
        
       
    
            17
            votes
        
        
            1
            answer
        
        
            7k
            views
        
    Possible to set BroadcastReceiver priority programmatically?
                Is it possible to set the priority attribute of a BroadcastReceiver programmatically or can it only be done in XML?
Relevant documents include:
http://developer.android.com/reference/android/content/...
            
        
       
    
            16
            votes
        
        
            4
            answers
        
        
            48k
            views
        
    Is broadcasting via TCP possible?
                I'm writing a server/client system in C, which uses BSD Sockets under a TCP connection.  The server is multi-threaded, with each connection running in its own receptor.  Each client does a good job ...
            
        
       
    
            15
            votes
        
        
            4
            answers
        
        
            24k
            views
        
    Sending packets to 255.255.255.255 by Java DatagramSocket fails
                I'm programming a networking program in java , and I want to send some Packets to 255.255.255.255, but it fails , even when I send them to 192.168.1.255, which according to the output of ifconfig ...
            
        
       
    
            15
            votes
        
        
            1
            answer
        
        
            8k
            views
        
    Can UDP broadcasts be received by multiple apps on the same computer?
                As an example, suppose I have a 'smart' thermometer that broadcasts the current temperature as a UDP datagram every N seconds. 
Now, I can write a client that listens for those messages and displays ...
            
        
       
    
            15
            votes
        
        
            1
            answer
        
        
            15k
            views
        
    Broadcasting over Wi-Fi Direct
                I'm looking at the possibility to broadcast over a Wi-Fi Direct connection between multiple Android devices. I've created a simple message broadcasting application to test whether or not it works, but ...
            
        
       
    
            15
            votes
        
        
            1
            answer
        
        
            10k
            views
        
    Detecting all available network's broadcast addresses in Java
                For my project I wanted to get a list of all available broadcast addresses so I could broadcast a request and my other application located on other computer in the unspecified network would respond ...
            
        
       
    
            14
            votes
        
        
            1
            answer
        
        
            37k
            views
        
    shape mismatch: indexing arrays could not be broadcast together with shapes
                j=np.arange(20,dtype=np.int)
site=np.ones((20,200),dtype=np.int)
sumkma=np.ones((100,20))
[sumkma[site[x],x] for x in range(20)]
This works, but I don't want to use for loop. When I try
sumkma[site[...
            
        
       
    
            14
            votes
        
        
            1
            answer
        
        
            9k
            views
        
    Broadcast receiver not working in ICS if the app is not started atleast once
                This question has been asked few times in stack overflow, but no solution, yet.
I have a broadcast receiver for for receiving USB connected action.The broadcast receiver responsibility is , if I get ...
            
        
       
    
            13
            votes
        
        
            2
            answers
        
        
            3k
            views
        
    Pendingintent getbroadcast lost parcelable data
                Here is the problem. My program is running perfect in Android 6.0. After update the device to android 7.0. Pendingintent can not pass the parcelable data to boradcast reveiver. Here is the code.
Fire ...
            
        
       
    
            13
            votes
        
        
            5
            answers
        
        
            17k
            views
        
    Listen for app installed / upgraded broadcast message in Android
                Using Lookout app (https://play.google.com/store/apps/details?id=com.lookout), I see every time I install or upgrade app, it'll automatically scan this app to ensure it's not malicious.
Follow ...
            
        
       
    
            13
            votes
        
        
            1
            answer
        
        
            9k
            views
        
    What is the best way to implement device discovery on a LAN
                I have little experience in network programming and I am writing a multi platform system which requires each device to be able to find other devices within the same LAN. I am looking for the right ...
            
        
       
    
            13
            votes
        
        
            3
            answers
        
        
            3k
            views
        
    Broadcasting UDP packets using multiple NICs
                I'm building an embedded system for a camera controller in Linux (not real-time).  I'm having a problem getting the networking to do what I want it to do.  The system has 3 NICs, 1 100base-T and 2 ...
            
        
       
    
            13
            votes
        
        
            1
            answer
        
        
            3k
            views
        
    docker docker0 and container broadcast addresses not set
                I'm "dockerizing" an app which does UDP broadcast heartbeating on a known port.  This is with docker-engine-1.7.0 on a variety of hosts (Fedora, Centos7, SLES 12).  
I notice that the 'docker0' ...
            
        
       
    
            12
            votes
        
        
            4
            answers
        
        
            24k
            views
        
    How are custom broadcast events implemented in JavaScript (or jQuery)?
                I want to implement a custom event that can be "broadcast", rather than sent to specific targets. Only those elements that have registered themselves as listeners for such events will receive them.
...
            
        
       
    
            12
            votes
        
        
            3
            answers
        
        
            8k
            views
        
    AngularJS event propagation--siblings?
                I understand that $emit sends messages up the DOM tree, and $broadcast sends messages down.
What about sending messages between sibling DOM elements—how do I do that?
            
        
       
    
            12
            votes
        
        
            6
            answers
        
        
            3k
            views
        
    Should my server use both TCP and UDP?
                I'm writing a client/server application and really can't find guides that fit my need. Doing it on my own leads me to many design flaws before I've even begun. For instance the server should update ...